Other translations of verse 117
Indeed, Allah has turned in mercy to the Prophet, the Emigrants and the Helpers who followed him in the hour of hardship [at Tabūk], after some of them were about to lose heart. Then He turned to them in mercy, for He is All-Gracious, Most Merciful to them.
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.
Allah hath turned in mercy to the Prophet, and to the Muhajirin and the Ansar who followed him in the hour of hardship. After the hearts of a party of them had almost swerved aside, then turned He unto them in mercy. Lo! He is Full of Pity, Merciful for them.
Allah turned with favour to the Prophet, the Muhajirs, and the Ansar,- who followed him in a time of distress, after that the hearts of a part of them had nearly swerved (from duty); but He turned to them (also): for He is unto them Most Kind, Most Merciful.
Certainly Allah has turned (mercifully) to the Prophet and those who fled (their homes) and the helpers who followed him in the hour of straitness after the hearts of a part of them were about to deviate, then He turned to them (mercifully); surely to them He is Compassionate, Merciful.
Indeed Allah has already relented towards the Prophet and the Muhajirûn (The Supporters, i.e., the inhabitants) and the ÉAnsar (The Supporters, i.e., the inhabitants of Al-Madînah who sheltered and helped those who emigrated from Makkah) who closely followed him in the hour of difficulty, even after the hearts of a group of them had almost swerved aside; thereafter He relented towards them; surely He is Ever-Compassionate, Ever-Merciful to them.