Mishkat al-Masabih 2492
Ibn ‘Umar said that God’s messenger seldom got up to leave an assembly without using these supplications for his companions:
“O God, apportion to us such fear of Thee as will come between us and acts of disobedience to Thee, such obedience to Thee as will bring us to Thy paradise, and such certainty that the calamities of this world will be made easy for us by Thee; let us enjoy our hearing, our sight and our power as long as Thou dost grant us life, and do the same for those who inherit from us; grant us revenge on those who have wronged us and help us against those who are hostile to us; let no calamity befall our religion, let not worldly affairs be our greatest care or all that we know about, and let not those who do not show mercy towards us rule over us.” 

Tirmidhi transmitted it, saying this is a hasan gharib tradition.
وَعَنِ ابْنِ عُمَرَ قَالَ: قَلَّمَا كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُومُ مِنْ مَجْلِسٍ حَتَّى يَدْعُوَ بِهَؤُلَاءِ الدَّعَوَاتِ لِأَصْحَابِهِ: «اللَّهُمَّ اقْسِمْ لَنَا مِنْ خَشْيَتِكَ مَا تَحُولُ بِهِ بَيْنَنَا وَبَيْنَ مَعَاصِيكَ وَمِنْ طَاعَتِكَ مَا تُبَلِّغُنَا بِهِ جَنَّتَكَ وَمِنَ الْيَقِينِ مَا تُهَوِّنُ بِهِ عَلَيْنَا مُصِيْبَاتِ الدُّنْيَا وَمَتِّعْنَا بِأَسْمَاعِنَا وَأَبْصَارِنَا وَقُوَّتِنَا مَا أَحْيَيْتَنَا وَاجْعَلْهُ الْوَارِثَ مِنَّا وَاجْعَلْ ثَأْرَنَا عَلَى مَنْ ظَلَمَنَا وَانْصُرْنَا عَلَى مَنْ عَادَانَا وَلَا تَجْعَلْ مُصِيبَتَنَا فِي دِينِنَا وَلَا تَجْعَلِ الدُّنْيَا أَكْبَرَ هَمِّنَا وَلَا مَبْلَغَ عِلْمِنَا وَلَا تُسَلِّطْ عَلَيْنَا مَنْ لَا يَرْحَمُنَا» . رَوَاهُ التِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ