Allahummahdini fiman hadayta, wa'afini fiman 'afayta, watawallani fiman tawallayta, wabarik li fima a'tayta, waqini sharra ma qadayta, fa innaka taqdi wala yuqda 'alayka, innahu la yadhillu man wal-ayta, wala ya'izzu man 'adayta, tabarakta rabbana wata'alayta
O Allah, guide me among those You have guided, grant me well-being among those You have granted well-being, take me into Your care among those You have taken into Your care, bless me in what You have given, and protect me from the evil of what You have decreed; for You decree and none decrees over You. Indeed, the one You befriend is never humbled, [and the one You take as an enemy is never honoured]. Blessed are You, our Lord, and Exalted.
Compiler cites Reported by the four Sunan, Aḥmad, ad-Dārimī and al-Ḥākim; the words in brackets are from al-Bayhaqī's report; see Ṣaḥīḥ at-Tirmidhī 1/144, Ṣaḥīḥ Ibn Mājah 1/194, Irwāʾ al-Ghalīl 2/172
Allahumma inni a'udhu biridaka min sakhatik, wabimu'afatika min 'uqubatik, wa a'udhu bika minka, la uhsi thana'an 'alayka, anta kama athnayta 'ala nafsik
O Allah, I seek refuge in Your good pleasure from Your anger, and in Your pardon from Your punishment, and I seek refuge in You from You. I cannot count Your praises; You are as You have praised Yourself.
O Allah, You alone we worship; to You we pray and prostrate; towards You we hasten and strive. We hope for Your mercy and fear Your punishment; indeed Your punishment will overtake the disbelievers. O Allah, we seek Your help and Your forgiveness; we praise You with all good; we do not deny You; we believe in You and humble ourselves before You; and we renounce whoever denies You.
Source as cited by the compiler al-Bayhaqī, as-Sunan al-Kubrā 2/211, who graded its chain ṣaḥīḥ; al-Albānī in Irwāʾ al-Ghalīl 2/170: this chain is ṣaḥīḥ, and it is from ʿUmar (mawqūf)