Al-Bukhaari (2829) and Muslim (1914) narrated from Abu Hurayrah (may Allaah be pleased with him) that the Messenger of Allaah (peace and blessings of Allaah be upon him) said: “The martyrs are five: the one who dies of the plague, the one who dies of a stomach disease, the one who drowns, the one who is crushed beneath a falling wall, and the martyr who is killed for the sake of Allaah.”
Ahmad (23804), Abu Dawood (3111) and al-Nasaa’i (1846) narrated that the Prophet (peace and blessings of Allaah be upon him) said: “Who do you regard as martyrs?” They said: The one who is killed for the sake of Allaah. The Messenger of Allaah (peace and blessings of Allaah be upon him) said: “Martyrs are seven besides the one who is killed for the sake of Allaah. The one who dies of the plague is a martyr, the one who drowns is a martyr, the one who dies of pleurisy is a martyr, the one who dies of a stomach disease is a martyr, the one who is burned to death is a martyr, the one who dies beneath a falling wall is a martyr, and the woman who dies in pregnancy is a martyr.” This hadeeth was classed as saheeh by al-Albaani in Saheeh Abi Dawood.
Pleurisy refers to a pustule or pustules that appear on the body of a person and when they open up the pain lessens and that is at the time of Death. One of the signs of this is pain beneath ribs and difficulty in breathing. It is often accompanied with persistent fever and coughing. It occurs often in women.
The stomach diseases include diarrhea, dropsy, and pain in stomach.
The woman in pregnancy refers to the one who dies with a child in her womb.
Al-Nawawi (may Allaah have mercy on him) said in Sharh Muslim: The one who dies of a stomach disease refers to diarrhea. And al-Qaadi said: and it was said that it is the one who suffers from dropsy and abdominal swelling. And it was said that it is the one who suffers from a stomach complaint. And it was said that it is the one who dies of stomach disease in general. End quote.
From fatwa al shaykh inb uthaymeen, it is clear that a person who dies of any stomach disease including appendix problems can be considered as a martyr.
We ask Allaah to forgive us all and have mercy on us and raise our status in deen.
And Allaah knows best.