Sunan an-Nasa'i, Book 37, Hadith 130 (Nasa'i 4105)

It was narrated that Sa'eed bin Zaid said:

"The Messenger of Allah said: 'Whoever is killed protecting his wealth, he is a martyr. Whoever is killed protecting his family, he is a martyr. Whoever is killed protecting his religion, he is a martyr. Whoever is killed protecting himself, he is a martyr.'"