Śrīmad-Bhāgavatam · Texts 10.3.37-38
Who is speaking and story frame
तदा वां परितुष्टोऽहममुना वपुषानघे ।
तपसा श्रद्धया नित्यं भक्त्या च हृदि भावित: ॥ ३७ ॥
प्रादुरासं वरदराड् युवयो: कामदित्सया ।
व्रियतां वर इत्युक्ते मादृशो वां वृत: सुत: ॥ ३८ ॥
tadā vāṁ parituṣṭo ’ham
amunā vapuṣānaghe
tapasā śraddhayā nityaṁ
bhaktyā ca hṛdi bhāvitaḥ
prādurāsaṁ varada-rāḍ
yuvayoḥ kāma-ditsayā
vriyatāṁ vara ity ukte
mādṛśo vāṁ vṛtaḥ sutaḥ
O sinless mother Devakī, after the expiry of twelve thousand celestial years, in which you constantly contemplated Me within the core of your heart with great faith, devotion and austerity, I was very much satisfied with you. Since I am the best of all bestowers of benediction, I appeared in this same form as Kṛṣṇa to ask you to take from Me the benediction you desired. You then expressed your desire to have a son exactly like Me.
Read Śrīla Prabhupāda's purport on Vedabase.io