Among the ways of being saved at times of trials is that:
a) a Muslim should ask his Lord to protect him from trials, those apparent and hidden. It is narrated from Abu Hurayrah, Allaah’s Messenger ﷺ said,
“When any of you says the testimony of Faith at the end of the prayer, let him seek Refuge in Allaah from four matters, saying, Allaahumma inny a’oothu bika min ‘athaaby Jahannama wa min ‘athaabi-l-qabry wa min fitnati-l-mayhyaa wa-l-mamaaty wa min sharry fitnati-l-maseehi-d-dajjaal, Allaah! I seek Refuge in You against the Punishment of the Fire, the Punishment of the grave, the trial of life and death and the trial of the lying Maseeh!” (Bukhaary 1377 and Muslim 588, whose wording it is)
b) generally, in such situations, a Muslim should seek Protection in the Book and Sunnah, learning, reflecting upon, and acting by that which there is in them. He also has to always look at the Texts of the two Revelations regarding this subject, just like any topic in the religion. If anything appears problematic for him, he should ask trustworthy scholars. He should also be very careful against all that is reported in media outlets. This is especially so when some people have become preoccupied with satellite channels and their broadcasted news. Praise be to Allaah! In our religion is that which is enough to be saved and free from trials and tribulations.
c) a Muslim should be concerned with personal acts of worship, plentiful voluntary acts of obedience, whether prayer, charity, fasting, Remembrance of Allaah, recitation, enjoining good and forbidding evil, and others. AN-Nawawy said, ‘The words of the Prophet ﷺ said,
“Performing worship during harj is like emigrating to me!” (Muslim 2948)
Harj here means trials and the confusion of people. The reason for the virtue of making much worship in it is that people become heedless and preoccupied from it, and only a few individuals find the time to perform it. (Sharh Ssaheeh Muslim, The Explanation of the Authentic Hadeeth Compilation of Muslim, 4:2268)