Sa'id b. Zaid reported God’s Messenger as saying, “He who is killed in defence of his religion is a martyr, he who is killed in self-defence is a martyr, he who is killed in defence of his property is a martyr, and he who is killed in defence of his family is a martyr.”
Tirmidhi, Abu Dawud and Nasa’i transmitted it.