Al-Kāfi - Volume 6 > Prayer and Appeal before Allah for a Son
Hadith #3

مُحَمَّدُ بْنُ يَحْيَى عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ عَنْ عَلِيِّ بْنِ الْحَكَمِ عَنْ رَجُلٍ عَنْ مُحَمَّدِ بْنِ مُسْلِمٍ عَنْ أَبِي عَبْدِ اللَّهِ ( عليه السلام ) قَالَ مَنْ أَرَادَ أَنْ يُحْبَلَ لَهُ فَلْيُصَلِّ رَكْعَتَيْنِ بَعْدَ الْجُمُعَةِ يُطِيلُ فِيهِمَا الرُّكُوعَ وَ السُّجُودَ ثُمَّ يَقُولُ اللَّهُمَّ إِنِّي أَسْأَلُكَ بِمَا سَأَلَكَ بِهِ زَكَرِيَّا يَا رَبِّ لَا تَذَرْنِي فَرْداً وَ أَنْتَ خَيْرُ الْوَارِثِينَ اللَّهُمَّ هَبْ لِي مِنْ لَدُنْكَ ذُرِّيَّةً طَيِّبَةً إِنَّكَ سَمِيعُ الدُّعَاءِاللَّهُمَّ بِاسْمِكَ اسْتَحْلَلْتُهَا وَ فِي أَمَانَتِكَ أَخَذْتُهَا فَإِنْ قَضَيْتَ فِي رَحِمِهَا وَلَداً فَاجْعَلْهُ غُلَاماً مُبَارَكاً زَكِيّاً وَ لَا تَجْعَلْ لِلشَّيْطَانِ فِيهِ شِرْكاً وَ لَا نَصِيباً .

3. Muhammad ibn Yahya has narrated from Ahmad ibn Muhammad from Ali ibn al-Hakam from a man from Muhammad ibn Muslim who has said the following: “Abu ‘Abd Allah, ‘Alayhi al-Salam, has said, ‘One who wishes for pregnancy should perform two Rak’at Salat (prayer) after Friday Salat (prayer) with long Ruku’ (bowing down on one’s knees) and Sajdah (prostration): then say, “O Lord, I ask and appeal before You as Zakariya had done. O Lord, do not leave me alone by myself -You are the best heir. O Lord, grant me from Your dominion fine offspring; You hear the prayer. O Lord, by Your name I have made her lawful and in Your trust I have taken her. If You have determined a child in her womb make it a son, a blessed one, [a clean one] and do not allow Satan to have a share or portion in him.’””