Abu Hurairah reported,

The Prophet ﷺ said, "None of you should say, 'O Allah, forgive me if You wish. O Allah, have mercy on me if You wish.' Rather, let him be firm in his supplication, for Allah does whatever He wills, and no one can compel Him."

Muslim 6813

Sahih

حدثنا إسحق بن موسى الأنصاري حدثنا أنس بن عياض حدثنا الحارث وهو ابن عبد الرحمن بن أبي ذباب عن عطاء بن ميناء

عن أبي هريرة قال

قال النبي ﷺ لا يقولن أحدكم اللهم اغفر لي إن شئت اللهم ارحمني إن شئت ليعزم في الدعاء فإن الله صانع ما شاء لا مكره له

مسلم 6813صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Remembrance, supplication, Tawba, and seeking forgiveness
Chapter
Resolving in supplication and not saying "if You will"
Numbering
Darussalam 6813
Muslim 6813