John talks about the teachings from the Buddha and Sariputta about not identifying with the five aggregates of form, sensation, perception, mental formation, and the six consciousnesses.
SN 22:1 Nakulapitusutta (Nakula's Father Discourse)
SN 22:2 Devadahasutta (At Devadaha Discourse)