Language:
كتاب الدعوات
80  
Invocations
(21)
Chapter: One should appeal to Allah with determination
(21)
باب لِيَعْزِمِ الْمَسْأَلَةَ، فَإِنَّهُ لاَ مُكْرِهَ لَهُ
Sahih al-Bukhari 6338

Narrated Anas:

Allah's Messenger (ﷺ) said, "When anyone of you appeal to Allah for something, he should ask with determination and should not say, 'O Allah, if You wish, give me.', for nobody can force Allah to do something against His Will.

حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا إِسْمَاعِيلُ، أَخْبَرَنَا عَبْدُ الْعَزِيزِ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِذَا دَعَا أَحَدُكُمْ فَلْيَعْزِمِ الْمَسْأَلَةَ، وَلاَ يَقُولَنَّ اللَّهُمَّ إِنْ شِئْتَ فَأَعْطِنِي‏.‏ فَإِنَّهُ لاَ مُسْتَكْرِهَ لَهُ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6338
In-book reference : Book 80, Hadith 35
USC-MSA web (English) reference : Vol. 8, Book 75, Hadith 350
  (deprecated numbering scheme)