Language:
كتاب التوحيد
97  
Oneness, Uniqueness of Allah (Tawheed)
(31)
Chapter: (Allah’s) Wish and Will
(31)
باب فِي الْمَشِيئَةِ وَالإِرَادَةِ
Sahih al-Bukhari 7477

Narrated Abu Huraira:

The Prophet (ﷺ) said, "None of you should say: 'O Allah! Forgive me if You wish,' or 'Bestow Your Mercy on me if You wish,' or 'Provide me with means of subsistence if You wish,' but he should be firm in his request, for Allah does what He will and nobody can force Him (to do anything).

حَدَّثَنَا يَحْيَى، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، عَنْ مَعْمَرٍ، عَنْ هَمَّامٍ، سَمِعَ أَبَا هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ يَقُلْ أَحَدُكُمُ اللَّهُمَّ اغْفِرْ لِي إِنْ شِئْتَ، ارْحَمْنِي إِنْ شِئْتَ، ارْزُقْنِي إِنْ شِئْتَ، وَلْيَعْزِمْ مَسْأَلَتَهُ، إِنَّهُ يَفْعَلُ مَا يَشَاءُ، لاَ مُكْرِهَ لَهُ ‏"‏‏.‏
Reference : Sahih al-Bukhari 7477
In-book reference : Book 97, Hadith 103
USC-MSA web (English) reference : Vol. 9, Book 93, Hadith 569
  (deprecated numbering scheme)