Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When any of you supplicates, let him not say, 'O Allah, forgive me if You wish,' or, 'O Allah, have mercy on me if You wish.' Rather, let him be firm in his request, for nothing can compel Him."In another narration, "And let him make his request great, for nothing that Allah grants is too great for Him."

Azami 10909

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: لا يقل أحدكم إذا دعا: اللهم اغفر لي إن شئت، اللهم ارحمني إن شئت، ليعزم المسألة؛ فإنه لا مكره له. وفي رواية: وليعظم الرغبة، فإن الله لا يتعاظمه شيء أعطاه.

الأعظمي 10909صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Rulings on supplication
Section
Determination in supplication, and one should not say, "If You will, then give me"
Numbering
Jami al-Kamil 10909 (2nd edition)
Azami 10909