He uttered the Qur'anic verse "We belong to Allah and to Him do we return" and he said: We have been dominated against you, Abu rRabi'. Then the women cried and wept, and Ibn Atik began to silence them. The Messenger of Allah (ﷺ) said: Leave them, when the divine decree is made, no woman should weep.
They (the people) asked: What is necessary happening, Messenger of Allah? He replied: Death. His daughter said: I hope you will be a martyr, for you have completed your preparations for jihad. The Messenger of Allah (ﷺ) said: Allah Most High gave him a reward according to his intentions. What do you consider martyrdom?
They said: Being killed in the cause of Allah.
The Messenger of Allah (ﷺ) said: There are seven types of martyrdom in addition to being killed in Allah's cause: one who dies of plague is a martyr; one who is drowned is a martyr; one who dies of pleurisy is a martyr; one who dies of an internal complaint is a martyr; one who is burnt to death is a martyr; who one is killed by a building falling on him is a martyr; and a woman who dies while pregnant is a martyr.
In-book : Book 21, Hadith 23
English translation : Book 20, Hadith 3105