Question:
If someone dies buried under a wall, will he be given the ritual bath (ghusl)?
Answer:
One who dies buried under a wall is a martyr by ruling (hukmi shahid), and a martyr by ruling is given ghusl and a shroud.
Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
المطعون شهيد، والمبطون شهيد، والغريق شهيد، والهدم شهيد، والمقتول في سبيل الله شهيد
There are five kinds of martyrs: the one who dies of plague, the one who dies afflicted with a stomach illness, the one who dies by drowning, the one who dies buried under a collapsed structure, and the one who is killed in the way of Allah.