Probably SN 42.8
"[The thought occurs to him,] 'Our teacher holds this doctrine, holds this view: 'All those who steal... All those who indulge in illicit sex... All those who tell lies are destined for a state of deprivation, are destined for hell.' There are lies that I have told. I, too, am destined for a state of deprivation, am destined for hell.' He fastens onto that view. If he doesn't abandon that doctrine, doesn't abandon that state of mind, doesn't relinquish that view, then as if he were to be carried off, he would thus be placed in hell."