The Messenger of Allah ﷺ visited Abdullah bin Rawaha during his illness, but Abdullah did not move aside on his bed to make room for him.The Prophet ﷺ asked, "Who are the martyrs of my nation?"They replied, "The Muslim killed in battle is a martyr."He said, "Then the martyrs of my nation would indeed be few. The Muslim killed in battle is a martyr, dying of the plague is martyrdom, dying of an abdominal illness is martyrdom, drowning is martyrdom, and a woman who dies with her child still inside her is a martyr."
عاد رسول الله ﷺ عبد الله بن رواحة فما تحوز له عن فراشه فقال: من شهداء أمتي؟ قالوا: قتل المسلم شهادة قال: إن شهداء أمتي إذا لقليل، قتل المسلم شهادة، والطاعون شهادة، والبطن والغرق والمرأة يقتلها ولدها جمعا.
Ahmad (17797, 22756, 22684) and Tayalisi (583) narrated it through several routes from Shubah, from Abu Bakr bin Hafs (that is, Abdullah bin Hafs bin Umar Zuhri), who said, "I heard Abu Musbih, or Ibn Musbih, Abu Bakr was uncertain which, from Shurahbil bin Simt, from Ubada bin Samit," and he related it. The wording given here is Ahmad's. Tayalisi added, "And the womb is a martyrdom." Its chain of transmission is sahih. Abu Musbih is al-Muqrai, known by his kunya, whose actual name is not known. The hadith has other routes besides this one, but what I have cited here is the most sahih of them.His words "fa ma tahawwuz" mean "she did not move aside." His words "jaman," with the jim vowelled by damma and the mim carrying sukun, mean that the child remained gathered within her, that is, she died while it was still in her womb.As for what has been narrated from Rashid bin Hubaysh in similar wording, found in Ahmad (15998), it is not sahih, for its chain contains a break as well as disagreement, and there is also dispute over whether Rashid was a companion of the Prophet. Ibn Hajar mentioned in Isabah (3/453), citing Ibn Manda, that the correct version is "from Rashid, from Ubada." And Allah knows best.