Al-Kāfi - Volume 8 > Hadith
Hadith #322

أَبَانٌ عَنِ ابْنِ أَبِي يَعْفُورٍ قَالَ قَالَ أَبُو عَبْدِ اللَّهِ (عليه السلام) إِنَّ وَلَدَ الزِّنَا يُسْتَعْمَلُ إِنْ عَمِلَ خَيْراً جُزِئَ بِهِ وَ إِنْ عَمِلَ شَرّاً جُزِئَ بِهِ.

322. Abaan, from Ibn Abu Ya’four who said: Abu Abdullah (asws) said: ‘The one of adulterous birth should (also) perform deeds. If his deeds are good he would be Recompensated for it, and if his deeds are evil he would be Recompensed for it’.