It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever is killed while defending his property is a martyr."
Imam al-Bukhari (may Allah have mercy on him) recorded a similar narration from Sayyiduna Abdullah bin Amr bin al-'As (may Allah be pleased with them both).