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

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

10. Ahmad ibn Muhammad al-‘Asemiy has narrated from Ali ibn al-Hassan al-Taymuliy from ‘Amr ibn ‘Uthman from abu Jamilah who has said the following: “Once, a man from Khurasan in al-Rabadhah said to abu ‘Abd Allah, ‘Alayhi al-Salam, ‘I pray to Allah to keep my soul in service for your cause, I have not been granted any children.’ He (the Imam) said, ‘When you return to your country and then decide to go to bed with your wife then read, ‘When the companion of fish went away in anger he thought that We will not apply any measures against him. He then in the dark called, “I testify that no one other than You deserves worship. You are free of all defects. I have been of those who wrong themselves.” Read up to three verses, you will be granted a child by the will of Allah.’”