Sunan Ibn Majah · Hadith 2628
The Chapters on Manumission (of Slaves) - كتاب العتق
حدثنا أبو بكر بن أبي شيبة، حدثنا الفضل بن دكين، حدثنا إسرائيل، عن زيد بن جبير، عن أبي يزيد الضني، عن ميمونة بنت سعد، - مولاة النبي صلى الله عليه وسلم - أن رسول الله صلى الله عليه وسلم سئل عن ولد الزنا فقال " نعلان أجاهد فيهما خير من أن أعتق ولد الزنا " .
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.”
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).