Sunan Ibn Majah – Hadith No : 2628

It was narrated from Maimunah bint Sa`d, the freed slave woman of the Prophet (ﷺ) that : the Messenger of Allah (ﷺ) was asked about illegitimate children. He said: “Two sandals in which I wage Jihad are better than freeing an illegitimate child.”

Hadith In Arabic Text :

حدثنا أبو بكر بن أبي شيبة، حدثنا الفضل بن دكين، حدثنا إسرائيل، عن زيد بن جبير، عن أبي يزيد الضني، عن ميمونة بنت سعد، – مولاة النبي صلى الله عليه وسلم – أن رسول الله صلى الله عليه وسلم سئل عن ولد الزنا فقال ‏”‏ نعلان أجاهد فيهما خير من أن أعتق ولد الزنا ‏”‏ ‏.‏

Chapter : The Chapters on Manumission (of Slaves) – كتاب العتق