Mahānāmasakkasutta
Evaṁ me sutaṁ— ekaṁ samayaṁ bhagavā sakkesu viharati kapilavatthusmiṁ nigrodhārāme. Tena kho pana samayena bhagavā gilānā vuṭṭhito hoti aciravuṭṭhito gelaññā. 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: “dīgharattāhaṁ, bhante, bhagavatā evaṁ dhammaṁ desitaṁ ājānāmi: ‘samāhitassa ñāṇaṁ, no asamāhitassā’ti. Samādhi nu kho, bhante, pubbe, pacchā ñāṇaṁ; udāhu ñāṇaṁ pubbe, pacchā samādhī”ti? Atha kho āyasmato ānandassa etadahosi: “bhagavā kho gilānavuṭṭhito aciravuṭṭhito gelaññā. Ayañca mahānāmo sakko bhagavantaṁ atigambhīraṁ pañhaṁ pucchati. Yannūnāhaṁ mahānāmaṁ sakkaṁ ekamantaṁ apanetvā dhammaṁ deseyyan”ti.
With Mahānāma the Sakyan
So I have heard. At one time the Buddha was staying in the land of the Sakyans, near Kapilavatthu in the Banyan Tree Monastery. Now at that time the Buddha had recently recovered from an illness. Then Mahānāma the Sakyan went up to the Buddha, bowed, sat down to one side, and said to him: “For a long time, sir, I have understood your teaching like this: ‘Knowledge is for those with immersion, not those without immersion.’ But, sir, does immersion come first, then knowledge? Or does knowledge come first, then immersion?” Then Venerable Ānanda thought, “The Buddha has recently recovered from an illness, and this Mahānāma asks him a question that’s too deep. Why don’t I take him off to one side and teach him the Dhamma?”