I heard it from Uqba as well, but I remember Ubayd's version better. He said, "I married a woman, and a black woman came to us and said, 'I have nursed you both.' So I went to the Prophet ﷺ and said, 'I have married so-and-so the daughter of so-and-so, and a black woman came to us and claimed, "I have nursed you both," but she is lying.'"He continued, "The Prophet turned away from me, so I came around to face him, but he turned his face away again. I said, 'She is lying.'"The Prophet replied, "How can you keep her when she has claimed that she nursed you both? Leave her."
حدثنا علي بن حجر حدثنا إسمعيل بن إبراهيم عن أيوب عن عبد الله بن أبي مليكة قال حدثني عبيد بن أبي مريم
وسمعته من عقبة ولكني لحديث عبيد أحفظ قال تزوجت امرأة فجاءتنا امرأة سوداء فقالت إني قد أرضعتكما فأتيت النبي ﷺ فقلت تزوجت فلانة بنت فلان فجاءتنا امرأة سوداء فقالت إني قد أرضعتكما وهي كاذبة قال فأعرض عني قال فأتيته من قبل وجهه فأعرض عني بوجهه فقلت إنها كاذبة قال وكيف بها وقد زعمت أنها قد أرضعتكما دعها عنك
Recorded also by Bukhari in the Book of Marriage, chapter on the testimony of the wet nurse, hadith no. 5104, from the hadith of Ismail, that is, Ibn Ulaya, with this same chain.There is also a report on this subject from Ibn Umar, but I have not found it.