Is the person who dies in the line of duty regarded as a martyr,
whether the cause is a fire, drowning or anything else?
If someone dies in a demolition, drowning or because of sudden accident, they are regarded as martyrs, as indicated by the Hadiths. However, they should be washed and Janazah (Funeral) Prayer should be offered for them like all dead Muslims. They differ from those who die in the battlefield who should not be washed and no Janazah Prayer should be offered for them because the Prophet (peace be upon him) did not wash the martyrs of
Uhud and did not perform Janazah Prayer for them.
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.