اللَّهُمَّ اهْدِنِي فِيْمَنْ هَدَيْتَ، وَعَافِنِي فِيْمَنْ عَافَيْتَ، وَتَوَلَّنِي فِيْمَنْ تَوَلَّيْتَ، وَبَارِكْ لِي فِيْمَا أَعْطَيْتَ، وَقِنِي شَرَّ مَا قَضَيْتَ، فَإِنَّكَ تَقْضِي وَلَا يُقْضَى عَلَيْكَ، إِنَّهُ لَا يَذِلُّ مَنْ والَيْتَ، [وَ لَا يَعِزُّ مَنْ عَادَيْتَ]، تَبارَكْتَ رَبَّنَا وَتَعَالَيْتَ
O Allāh, guide me along with those whom You have guided, pardon me along with those whom You have pardoned, be an ally to me along with those whom You are an ally to, and bless for me that which You have bestowed. Protect me from the evil You have decreed for verily You decree and none can decree over You. For surety, he whom you show allegiance to is never abased and he whom You take as an enemy is never honored and mighty. O our Lord, Blessed and Exalted are You.
Reference: O Allāh, guide me along with those whom You have guided, pardon me along with those whom You have pardoned, be an ally to me along with those whom You are an ally to, and bless for me that which You have bestowed. Protect me from the evil You have decreed for verily You decree and none can decree over You. For surety, he whom you show allegiance to is never abased and he whom You take as an enemy is never honored and mighty. O our Lord, Blessed and Exalted are You. Abū Dāwud (#1425), al-Tirmidhī (#464), al-Nasāʾī (1/252), Ibn Mājah (#1178), Aḥmad (1/200), al-Dārimī (1/373), al-Hākim (3/172), and al-Bayhaqī (2/209, 497, 498). What is between the brackets is from al-Bayhaqī. Also see _Ṣaḥīḥ al-Tirmidhī_ (1/144), _Ṣaḥīḥ Ibn Mājah_ (1/194), and _Irwāʾ al-Ghalīl_ (2/172).