Shaykh Yasir Qadhi discusses a dua that is recited by the righteous in times of distress and patience.
This verse was recited by the magicians at the time of standing at the face of imminent torture and death in the time of Firaun.
"رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا وَتَوَفَّنَا مُسْلِمِينَ"
"Our Lord, pour upon us patience and let us die as Muslims [in submission to You]."
[Surah Al-A'raf ,Verse 126]
Patience is the main mechanism we use to cope with the troubles of this world. Allah will help with two mechanisms - patience and salaah.
"Our Lord, pour upon us patience and plant firmly our feet and give us victory over the disbelieving people."
[Surah Al Baqarah - verse 250]
This dua was recited when the mighty army of Jalooth was approaching the Muslims.