Al-Kāfi

Hadith 1403
marriageadultery
3- مُحَمَّدُ بْنُ يَحْيَى عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ وَعِدَّةٌ مِنْ أَصْحَابِنَا عَنْ سَهْلِ بْنِ زِيَادٍ عَنِ الْحَسَنِ بْنِ مَحْبُوبٍ عَنْ عَبْدِ اللهِ بْنِ سِنَانٍ قَالَ قُلْتُ لأبِي عَبْدِ اللهِ (عَلَيْهِ السَّلام) وَلَدُ الزِّنَا يُنْكَحُ قَالَ نَعَمْ وَلا يُطْلَبُ وَلَدُهَا.
3. Muhammad ibn Yahya has narrated from Ahmad ibn Muhammad Ahmad ibn Muhammad from certain persons of our people from Sahl ibn Ziyad from al-Hassan ibn Mahbub from ‘Abd Allah ibn Sinan who has said the following: “This is concerning my question before abu ‘Abd Allah (a.s.), about marriage with one born out of wedlock. He (the Imam) said, ‘Yes, but her children are not wanted.’”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī