The Command to call on Allah when Calamity strikes, to repel Evil with that which is better, and to seek refuge with Allah
Allah commands His Prophet Muhammad ﷺ to call on Him with this supplication when calamity strikes:
رَّبِّ إِمَّا تُرِيَنِّى مَا يُوعَدُونَ
(My Lord! If You would show me that with which they are threatened.) meaning, `if You punish them while I am witnessing that, then do not cause me to be one of them.' As was said in the Hadith recorded by Imam Ahmad and At-Tirmidhi, who graded it Sahih:
أَن يَحْضُرُونِ (from that they come to me - 23:98) According to a Hadith in Sahih of Muslim the Holy Prophet ﷺ is reported to have said that Shaitan meddles in all human affairs and tempts people to do evil deeds, and that this prayer is the best protection against his attempts. (Qurtubi)
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 98–103
When God’s preacher calls for the Truth, it often happens that those whom he addresses, instead of acknowledging it, become his enemies. They make him the target of mischief and spread false propaganda against him. At that time, he has the urge to react. He feels that if he has been maltreated by others, he should also retaliate. He feels that if he keeps quiet, will be encouraged and they will be emboldened to engage in further opposition. But all such thoughts are instigations of Satan. At this critical juncture, Satan confuses the issue with a view to leading man astray. On such occasions, one who is a believer should seek God’s protection, will cast him into manifest error.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.