It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Whoever is in his house and is attacked unjustly and aggressively, then fights back and is killed, he has died a martyr. And whoever is asked for charity and gives it, then is wronged, fights back and is killed, he has died a martyr."
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Talhah bin Musarrif except Sulayman bin Khalid; Muhammad bin Mahan is alone in it."