Abu Hurairah reported,

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

Bukhari 7477

Sahih

حدثنا يحيى حدثنا عبد الرزاق عن معمر عن همام سمع

أبا هريرة

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

البخاري 7477صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Will and volition
Numbering
Darussalam 7477
Bukhari 7477