Messenger of Allah ﷺ said, "None of you should say: 'O Allah, forgive me if You wish; O Allah, be merciful to me if You wish,' but he should always appeal to Allah with determination, for nobody can force Allah to do something against His Will." (Using translation from Bukhārī 6339)
عَنِ النَّبِيِّ ﷺ قَالَ لَا يَقُلْ أَحَدُكُمُ اللهُمَّ اغْفِرْ لِي إِنْ شِئْتَ وَلَكِنْ لِيَعْزِمِ الْمَسْأَلَةَ فَإِنَّ اللهَ تَعَالَى لَا مُسْتَكْرِهَ لَهُ