Sayyiduna Uqbah bin Amir al-Juhani (may Allah be pleased with him) (the narrator thought it was from him) said that the Messenger of Allah (peace and blessings be upon him) said: "There are three things; whoever is saved from them is saved: whoever is saved at the time of the killing of a believer is saved; whoever is saved at the time of the killing of a caliph who is killed wrongfully while being patient and giving what is due from himself is saved; and whoever is saved from the trial of the Dajjal is saved."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14866