Ayesha reported,

One night I noticed that the Messenger of Allah ﷺ was missing from his bed, so I searched for him. My hand fell upon the soles of his feet while he was in the place of prayer, with his feet upright, and he was saying, "O Allah, I seek refuge in Your pleasure from Your displeasure, and in Your pardon from Your punishment, and I seek refuge in You from You. I cannot enumerate Your praise. You are as You have praised Yourself."

Ibn Majah 3841

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا أبو أسامة حدثنا عبيد الله بن عمر عن محمد بن يحيى بن حبان عن الأعرج عن أبي هريرة

عن عائشة قالت

فقدت رسول الله ﷺ ذات ليلة من فراشه فالتمسته فوقعت يدي على بطن قدميه وهو في المسجد وهما منصوبتان وهو يقول اللهم إني أعوذ برضاك من سخطك وبمعافاتك من عقوبتك وأعوذ بك منك لا أحصي ثناء عليك أنت كما أثنيت على نفسك

ابن ماجه 3841صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Supplication
Chapter
What the Messenger of Allah ﷺ sought refuge from
Numbering
Darussalam 3841
Ibn Majah 3841