Paṭhamamahānāmasutta
Evaṁ me sutaṁ— ekaṁ samayaṁ bhagavā sakkesu viharati kapilavatthusmiṁ nigrodhārāme. Atha kho mahānāmo sakko yena bhagavā tenupasaṅkami; upasaṅkamitvā bhagavantaṁ abhivādetvā ekamantaṁ nisīdi. Ekamantaṁ nisinno kho mahānāmo sakko bhagavantaṁ etadavoca: “idaṁ, bhante, kapilavatthu iddhañceva phītañca bāhujaññaṁ ākiṇṇamanussaṁ sambādhabyūhaṁ. So khvāhaṁ, bhante, bhagavantaṁ vā payirupāsitvā manobhāvanīye vā bhikkhū sāyanhasamayaṁ kapilavatthuṁ pavisanto; bhantenapi hatthinā samāgacchāmi; bhantenapi assena samāgacchāmi; bhantenapi rathena samāgacchāmi; bhantenapi sakaṭena samāgacchāmi; bhantenapi purisena samāgacchāmi. Tassa mayhaṁ, bhante, tasmiṁ samaye mussateva bhagavantaṁ ārabbha sati, mussati dhammaṁ ārabbha sati, mussati saṅghaṁ ārabbha sati. Tassa mayhaṁ, bhante, evaṁ hoti: ‘imamhi cāhaṁ samaye kālaṁ kareyyaṁ, kā mayhaṁ gati, ko abhisamparāyo’”ti?
With Mahānāma (1st)
So I have heard. At one time the Buddha was staying in the land of the Sakyans, near Kapilavatthu in the Banyan Tree Monastery. Then Mahānāma the Sakyan went up to the Buddha, bowed, sat down to one side, and said to him: “Sir, this Kapilavatthu is successful and prosperous, populous and full of people, with cramped cul-de-sacs. In the late afternoon, after paying homage to the Buddha or an esteemed mendicant, I enter Kapilavatthu. I encounter a stray elephant, horse, chariot, cart, or person. At that time I lose mindfulness regarding the Buddha, the teaching, and the Saṅgha. I think: ‘If I were to die at this time, where would I be reborn in my next life?’”