Greetings in the Triple Gem, Dhamma Siblings,
I’m trying to find a Sutta:
A devotee asks the Buddha about the rebirth of he’s father and his uncle. Th e father had lived a strict and rigid life according to precepts, and the uncle had continued to have sex with his wife and drink some alcohol, yet both were reborn in heavenly realms. The strict father was too attached to his virtue, and the uncle was able to partake of those worldly pleasures without detriment because he had no attachment.
I believe you’re looking for this sutta: AN6.44 With Magasālā. Though it doesn’t match exactly what you said. Here the layperson is a woman, and the sutta only mentions celibacy, nothing about attachment.
Sir, Ānanda, how on earth are we supposed to understand the teaching taught by the Buddha, when the chaste and the unchaste are both reborn in exactly the same place in the next life?
It’s a very funny and informative sutta, indeed, about passing judgment when we can’t even see the full picture