Abu Hurairah reported,

The Messenger of Allah ﷺ said, "None of you should say, 'Allah, forgive me if You wish. Allah, have mercy on me if You wish.' Rather, let him be firm in his request, for nothing can compel Him."

Bukhari 6339

Sahih

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

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

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

البخاري 6339صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Supplications
Chapter
Let one be resolute in asking, for none can compel Him
Numbering
Darussalam 6339
Bukhari 6339