Sahih Bukhari
Laws of Inheritance (Al-Faraaid)
Volume: 008 / Book Number: 080 / Hadith Number: 740
Narrated Ibn 'Umar:
A man and his wife had a case of Lian (or Mula'ana) during the lifetime of the Prophet and the man denied the paternity of her child. The Prophet gave his verdict for their separation (divorce) and then the child was regarded as belonging to the wife only.