I witnessed their mutual cursing before the Prophet ﷺ when I was fifteen years old. He related the hadith, including in it, "Then she left pregnant, and the child was thereafter called after his mother."
حدثنا أحمد بن صالح حدثنا ابن وهب قال أخبرني يونس عن ابن شهاب
حضرت لعانهما عند النبي ﷺ وأنا ابن خمس عشرة سنة وساق الحديث قال فيه ثم خرجت حاملا فكان الولد يدعى إلى أمه
Muslim narrated it, no. 1492, from the hadith of Abdullah bin Wahb, in similar wording. See the previous hadith, no. 2245.