Acelakassapasutta

Suttapiṭaka · Saṁyuttanikāya · Nidānavaggasaṁyutta · Vol. 16 · Section 50

[50] "'The one who acts is the very one who experiences [the result]': Kassapa, for one who assumes this from the beginning, asserting 'suffering (dukkha) is made by oneself'—this amounts to eternalism (sassata). 'One acts, another experiences': Kassapa, for one stricken by feeling (vedanā), asserting 'suffering is made by another'—this amounts to annihilationism (uccheda). Without approaching either of these two extremes, Kassapa, the Tathāgata teaches the Dhamma by the middle: with ignorance (avijjā) as condition, volitional formations [come to be]; with volitional formations as condition, consciousness … Thus is the origin of this whole mass of suffering. But with the remainderless fading away and cessation of that very ignorance comes the cessation of volitional formations; with the cessation of volitional formations, the cessation of consciousness … Thus is the cessation of this whole mass of suffering."

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