Abu Hurairah (May Allah be pleased with him) reported:
A man came to the Messenger of Allah (Sallallahu Alaihi Wasallam) and asked,
"O Messenger of Allah! (Sallallahu Alaihi Wasallam)
What shall I do if someone comes to me with
the intention of taking away my property?''
He (Sallallahu Alaihi Wasallam) replied,
"Do not hand over it to him.''
The man asked, "What shall I do if he fights me?''
The Messenger of Allah (Sallallahu Alaihi Wasallam) said,
"Then fight him.''
"What will be my position in the Hereafter if he has killed me?''
The Messenger of Allah (Sallallahu Alaihi Wasallam) replied,
"In that case you are a martyr.''
The man asked: "What if I killed him?''
The Messenger of Allah (Sallallahu Alaihi Wasallam) replied,
"He will be in the Hell-fire.''
[Muslim].