Narrated Ibn Umar:
A man accused his wife of illegal sexual intercourse and denied his paternity to her (conceived) child during the lifetime of Allah's Apostle. Allah's Apostle ordered them both to do Mula'ana as Allah decreed and then gave his decision that the child would be for the mother, and a divorce decree was issued for the couple involved in a case of Mula'ana.
Sahih al-Bukhari, Vol. 6, Book of Prophetic Commentary on the Qur'an, Hadith 272
Sahih al-Bukhari, Book of Prophetic Commentary on the Qur'an, Hadith 272