Messenger of Allah ﷺ 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. (Using translation from Bukhārī 6338)
عَنْ رَسُولِ اللهِ ﷺ قَالَ إِذَا دَعَا أَحَدُكُمْ فَلْيَعْزِمِ الْمَسْأَلَةَ وَلَا يَقُلْ أَعْطِنِي إِنْ شِئْتَ فَإِنَّ اللهَ لَا مُسْتَكْرِهَ لَهُ