عَنْهُ عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ عَنْ عَلِيِّ بْنِ الْحَكَمِ عَنِ الْحُسَيْنِ بْنِ سَعِيدٍ قَالَ كُنْتُ أَنَا وَ ابْنُ غَيْلَانَ الْمَدَائِنِيُّ دَخَلْنَا عَلَى أَبِي الْحَسَنِ الرِّضَا ( عليه السلام ) فَقَالَ لَهُ ابْنُ غَيْلَانَ أَصْلَحَكَ اللَّهُ بَلَغَنِي أَنَّهُ مَنْ كَانَ لَهُ حَمْلٌ فَنَوَى أَنْ يُسَمِّيَهُ مُحَمَّداً وُلِدَ لَهُ غُلَامٌ فَقَالَ مَنْ كَانَ لَهُ حَمْلٌ فَنَوَى أَنْ يُسَمِّيَهُ عَلِيّاً وُلِدَ لَهُ غُلَامٌثُمَّ قَالَ عَلِيٌّ مُحَمَّدٌ وَ مُحَمَّدٌ عَلِيٌّ شَيْئاً وَاحِداً قَالَ أَصْلَحَكَ اللَّهُ إِنِّي خَلَّفْتُ امْرَأَتِي وَ بِهَا حَبَلٌ فَادْعُ اللَّهَ أَنْ يَجْعَلَهُ غُلَاماً فَأَطْرَقَ إِلَى الْأَرْضِ طَوِيلًا ثُمَّ رَفَعَ رَأْسَهُ فَقَالَ لَهُ سَمِّهِ عَلِيّاً فَإِنَّهُ أَطْوَلُ لِعُمُرِهِ فَدَخَلْنَا مَكَّةَ فَوَافَانَا كِتَابٌ مِنَ الْمَدَائِنِ أَنَّهُ قَدْ وُلِدَ لَهُ غُلَامٌ .
2. It is narrated from the narrator of the previous Hadith from Muhammad ibn Ali from Ali ibn al-Hakam from al-Husayn ibn Sa‘id who has said the following: “Once ibn Ghaylan al-Mada’iniy and I visited abu al-Hassan, al-Rida’ , and ibn Ghaylan said to him (the Imam), ‘I pray to Allah to keep you well, I have been informed that if one’s wife is pregnant and he keeps his intention to name him Muhammad a son then is born to him.’ He (the Imam) said, ‘If one’s wife is pregnant and he keeps in his intention to name him Ali, (in this case also) a son will born to him.’ He (the Imam) then said, ‘Ali and Muhammad is one thing.’ He then said, ‘I pray to Allah to keep you well, I left my wife pregnant, please pray to Allah to make him a boy.’ He (the Imam) bent down his head for a long time; then raised his head and said, ‘Name him Ali because it is good for his long life.’ We then entered Makkah and a letter came from al-Mada’in saying, “A boy is born to him.’”” 