The Messenger of Allah ﷺ said, "Whoever is killed defending his property is a martyr, whoever is killed defending his family is a martyr, whoever is killed defending his religion is a martyr, and whoever is killed defending his life is a martyr."
أخبرنا محمد بن رافع ومحمد بن إسمعيل بن إبراهيم قالا حدثنا سليمان يعني ابن داود الهاشمي قال حدثنا إبراهيم عن أبيه عن أبي عبيدة بن محمد بن عمار بن ياسر عن طلحة بن عبد الله بن عوف
قال رسول الله ﷺ من قتل دون ماله فهو شهيد ومن قتل دون أهله فهو شهيد ومن قتل دون دينه فهو شهيد ومن قتل دون دمه فهو شهيد
[Its chain of transmission is sahih]. Abu Dawud narrated it from the hadith of Sulayman bin Dawud (the previous hadith), and it is also found in Kubra, no. 3558.