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.”
Ibn ‘Umar reported the Prophet as saying, ‘‘Jahannam has seven gates, one of which is for those who draw a sword against my people,” or he said, "against Muhammad’s people.”
Tirmidhi transmitted it, saying this is a gharib tradition.