Hadithcore
Hadith #2113740

A wording has:

"She gave birth to a child after forty nights of her husband's death."

وَفِي لَفْظٍ: { أَنَّهَا وَضَعَتْ بَعْدَ وَفَاةِ زَوْجِهَا بِأَرْبَعِينَ لَيْلَةً [1]‏ } .‏

References2 variants
Sunnah.com reference
Book 8, Hadith 164
Arabic/English book reference
Book 8, Hadith 0