Abu Hurairah said: That I give a flog in the path of Allah (as a charity) is dearer to me than emancipating a child of adultery.
In-book : Book 31, Hadith 38
English translation : Book 30, Hadith 3952
31. The Book of Manumission of Slaves
باب فِي عِتْقِ وَلَدِ الزِّنَا