Mahāvagga

Suttapiṭaka · Khuddakanikāya · Paṭisambhidāmagga · Vol. 31 · Section 79

[79] How is the wisdom of giving ear (sotāvadhāna) to [the teaching] "All formations (saṅkhārā) are impermanent, all formations are suffering (dukkha), all dhammas are not-self," that is, the understanding of that, knowledge born of what has been heard (sutamaye ñāṇaṃ)? The wisdom of giving ear to [the teaching] "Form (rūpa) is impermanent in the sense of destruction, suffering in the sense of fearfulness, not-self in the sense of corelessness," that is, the understanding of that, is knowledge (ñāṇa) born of what has been heard. The wisdom of giving ear to [the teaching] "Feeling (vedanā), perception, volitional formations, consciousness, the eye … aging and death are impermanent in the sense of destruction, suffering in the sense of fearfulness, not-self in the sense of corelessness," that is, the understanding of that, is knowledge born of what has been heard. It is knowledge in the sense of what is known; it is wisdom in the sense of understanding. Therefore it is said: the wisdom of giving ear to [the teaching] "All formations are impermanent, all formations are suffering, all dhammas are not-self," that is, the understanding of that, is knowledge born of what has been heard.

English translation from the Pali (Siam Raṭṭha edition) — under review, not for citation.

This passage also appears in 2 other places