I cant find it in Arabic though I've been searching, i should have authenticated it before putting it up, as i cant find the original source, I even saw it on this forum once, here's some of the stuff my searches turned up,
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:
(If You want to test people, then take me to You ﴿cause me to die﴾ without having to undergo the test.)
(And indeed We are able to show you that with which We have threatened them.) means, `if We willed, We could show you the punishment and test that We will send upon them.'
then there is the quranic prayer: قُل رَّبِّ إِمَّا تُرِيَنِّى مَا يُوعَدُونَ
(93. Say: “My Lord! If You would show me that with which they are threatened, ”)
رَبِّ فَلاَ تَجْعَلْنِى فِى الْقَوْمِ الظَّـلِمِينَ
*(94. “My Lord! Then, put me not amongst the people who are the wrongdoers.”)
And there is the Hadith in sahih Muslim which says that during the trials of Antichrist, a man would roll over a grave and say: would that I were in your place.
But during my searches, I find more emphasis on the fact that tests purify us of evil and that our mistakes and afflictions should draw us closer to Him rather than into despair.
This blog made me think a bit: