This was the dua of Prophet Zakariyya who feared dying without an heir. Recite it when you feel completely alone asking Allah who is Al-Warith the ultimate Inheritor to fill your life with companions.