Abhinandanasutta

Suttapiṭaka · Saṁyuttanikāya · Khandhavaggasaṁyutta · Vol. 17 · Section 65

[65] Bhikkhus, one who does not delight in form does not delight in suffering (dukkha); one who does not delight in suffering is freed from suffering, I say. One who does not delight in feeling (vedanā) … One who does not delight in perception … One who does not delight in volitional formations … One who does not delight in consciousness does not delight in suffering; one who does not delight in suffering is freed from suffering, I say.

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

This passage also appears in 1 other place