9:118
وَ عَلَى ٱل ثَّلَٰثَةِ ٱلَّذِينَ خُلِّفُ وا۟ حَتَّىٰٓ إِذَا ضَاقَتْ عَلَيْ هِمُ ٱلْ أَرْضُ بِ مَا رَحُبَتْ وَ ضَاقَتْ عَلَيْ هِمْ أَنفُسُ هُمْ وَ ظَنُّ وٓا۟ أَن لَّا مَلْجَأَ مِنَ ٱللَّهِ إِلَّآ إِلَيْ هِ ثُمَّ تَابَ عَلَيْ هِمْ لِ يَتُوبُ وٓا۟ إِنَّ ٱللَّهَ هُوَ ٱل تَّوَّابُ ٱل رَّحِيمُ
And [He also forgave] the three who were left behind [and regretted their error] to the point that the earth closed in on them in spite of its vastness and their souls confined them and they were certain that there is no refuge from Allah except in Him. Then He turned to them so they could repent. Indeed, Allah is the Accepting of repentance, the Merciful.
9:25
لَ قَدْ نَصَرَ كُمُ ٱللَّهُ فِى مَوَاطِنَ كَثِيرَةٍ وَ يَوْمَ حُنَيْنٍ إِذْ أَعْجَبَتْ كُمْ كَثْرَتُ كُمْ فَ لَمْ تُغْنِ عَن كُمْ شَيْـًٔا وَ ضَاقَتْ عَلَيْ كُمُ ٱلْ أَرْضُ بِ مَا رَحُبَتْ ثُمَّ وَلَّيْ تُم مُّدْبِرِينَ
Allah has already given you victory in many regions and [even] on the day of Hunayn, when your great number pleased you, but it did not avail you at all, and the earth was confining for you with its vastness; then you turned back, fleeing.