It is narrated from Sayyiduna Abdullah bin Hawalah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said three times: "Whoever is saved from three things has been saved: my death, the Dajjal, and the killing of a caliph who stands firm and steadfast upon the truth, giving it (the truth its due)."
Related hadith on this topic