A man accused his wife of adultery and denied that her child was his during the time of the Messenger of Allah ﷺ. The Messenger of Allah ﷺ ordered the two of them to perform the mutual oath of condemnation as Allah commanded. He then ruled that the child belonged to the woman and separated the two who had taken the Mutalaineen oath.
أن رجلا رمى امرأته، فانتفى من ولدها في زمان رسول الله ﷺ، فأمر بهما رسول الله ﷺ، فتلاعنا كما قال الله، ثم قضى بالولد للمرأة، وفرق بين المتلاعنين.
Bukhari related it in the tafsir (4748), and Muslim in the chapter on lian (9:1494), both of them through Ubaydullah, from Nafi, from Ibn Umar, who narrated it. The wording is Bukhari's, and Muslim's wording is shorter, with this same chain of transmission.