An-Nahl 16:110 ثم ان ربك للذين هاجروا من بعد ما فتنوا ثم جاهدوا وصبروا ان ربك من بعدها لغفور رحيم ١١٠
ثُمَّ
إِنَّ
رَبَّكَ
لِلَّذِينَ
هَاجَرُواْ
مِنۢ
بَعۡدِ
مَا
فُتِنُواْ
ثُمَّ
جَٰهَدُواْ
وَصَبَرُوٓاْ
إِنَّ
رَبَّكَ
مِنۢ
بَعۡدِهَا
لَغَفُورٞ
رَّحِيمٞ
١١٠
Hierauf wird dein Herr zu denjenigen, die ausgewandert sind, nachdem sie der Versuchung ausgesetzt wurden, und sich hierauf abgemüht haben und standhaft gewesen sind - gewiß, dein Herr wird nach (all) diesem (zu ihnen) wahrlich Allvergebend und Barmherzig sein.
Read Tafsir
Ibn Kathir (Abridged)
The One who is forced to renounce Islam will be forgiven if He does Righteous Deeds afterwards
This refers to another group of people who were oppressed in Makkah and whose position with their own people was weak, so they went along with them when they were tried by them. Then they managed to escape
…The One who is forced to renounce Islam will be forgiven if He does Righteous Deeds afterwards
This refers to another group of people who were oppresse
…