لَّقَد تَّابَ ٱللَّهُ عَلَى ٱلنَّبِىِّ وَٱلْمُهَـٰجِرِينَ وَٱلْأَنصَارِ ٱلَّذِينَ ٱتَّبَعُوهُ فِى سَاعَةِ ٱلْعُسْرَةِ مِنۢ بَعْدِ مَا كَادَ يَزِيغُ قُلُوبُ فَرِيقٍ مِّنْهُمْ ثُمَّ تَابَ عَلَيْهِمْ ۚ إِنَّهُۥ بِهِمْ رَءُوفٌ رَّحِيمٌ ١١٧
Allāh has already forgiven the Prophet and the Muhājireen and the Anṣār who followed him in the hour of difficulty after the hearts of a party of them had almost inclined [to doubt], and then He forgave them. Indeed, He was to them Kind and Merciful.
Saheeh International · QuranEnc v1.1.2
Another translation: Al-Hilali & Muhsin Khan · QuranEnc v1.1.2
117. Allâh has forgiven the Prophet (صلى الله عليه وسلم), the Muhâjirûn (Muslim emigrants who left their homes and came to Al-Madinah) and the Ansâr (Muslims of Al-Madinah) who followed him (Muhammad صلى الله عليه وسلم) in the time of distress (Tabûk expedition), after the hearts of a party of them had nearly deviated (from the Right Path), but He accepted their repentance. Certainly, He is unto them full of Kindness, Most Merciful.