Surah Al-Anbiyaa

21:89

وَزَكَرِيَّآ إِذْ نَادَىٰ رَبَّهُۥ رَبِّ لَا تَذَرْنِى فَرْدًۭا وَأَنتَ خَيْرُ ٱلْوَٰرِثِينَ

And [mention] Zechariah, when he called to his Lord, "My Lord, do not leave me alone [with no heir], while you are the best of inheritors."

Tafsir 21:89

O Messenger! Also mention the story of Zechariah (peace be upon him), when he prayed to his Lord saying, “O my Lord! Do not leave me alone without any children. You are the best of the living, so grant me a child that lives after me.”