Gahabavagga

Suttapiṭaka · Majjhimanikāya · Vol. 13 · Section 16

[16] When his mind (citta) is thus concentrated, purified, cleansed, unblemished, rid of defilement, malleable, wieldy, steady, and attained to imperturbability, he directs the mind toward the knowledge (ñāṇa) of the passing away and reappearance of beings. With the divine eye, which is purified and surpasses the human, he sees beings passing away and reappearing—inferior and superior, fair and ugly, fortunate and unfortunate—and he understands beings as faring according to their kamma thus: 'These worthy beings, alas, endowed with bodily misconduct, endowed with verbal misconduct, endowed with mental misconduct, revilers of the noble ones, holding wrong view, undertaking actions under the influence of wrong view—they, with the breakup of the body, after death, have reappeared in a state of deprivation, a bad destination, a place of ruin, hell. But these worthy beings, endowed with bodily good conduct, endowed with verbal good conduct, endowed with mental good conduct, not revilers of the noble ones, holding right view, undertaking actions under the influence of right view—they, with the breakup of the body, after death, have reappeared in a good destination, a heavenly world.' Thus with the divine eye, which is purified and surpasses the human, he sees beings passing away and reappearing—inferior and superior, fair and ugly, fortunate and unfortunate—and he understands beings as faring according to their kamma.

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

This passage also appears in 5 other places