Al-Kāfi
Hadith 5112- مُحَمَّدُ بْنُ يَحْيَى عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ عَنْ عَلِيِّ بْنِ سَيْفٍ عَنْ مُحَمَّدِ بْنِ الْحَسَنِ الأشْعَرِيِّ قَالَ كَتَبَ بَعْضُ أَصْحَابِنَا كِتَاباً إِلَى أَبِي جَعْفَرٍ الثَّانِي (عَلَيْهِ السَّلام) مَعِي يَسْأَلُهُ عَنْ رَجُلٍ فَجَرَ بِامْرَأَةٍ ثُمَّ إِنَّهُ تَزَوَّجَهَا بَعْدَ الْحَمْلِ فَجَاءَتْ بِوَلَدٍ وَهُوَ أَشْبَهُ خَلْقِ اللهِ بِهِ فَكَتَبَ بِخَطِّهِ وَخَاتَمِهِ الْوَلَدُ لِغَيَّةٍ لا يُوَرَّثُ.
2. Muhammad ibn Yahya has narrated from Ahmad ibn Muhammad from Ali ibn Sayf from Muhammad ibn af-Hassan al-Ash ‘ariy who has narrated the following: “Once certain persons of our people with me wrote to abu Ja’far, al-Thaniy (a.s.), asking about a man who commits the indecent act with a woman, then marries her after she becomes pregnant and gives birth to a child who of all creatures is similar to him. He (the Imam) wrote back in his handwriting the answer that said, ‘A child born out of wedlock cannot be made to inherit.’”