An-Nahl 16:110 ثم ان ربك للذين هاجروا من بعد ما فتنوا ثم جاهدوا وصبروا ان ربك من بعدها لغفور رحيم ١١٠
ثُمَّ
إِنَّ
رَبَّكَ
لِلَّذِينَ
هَاجَرُواْ
مِنۢ
بَعۡدِ
مَا
فُتِنُواْ
ثُمَّ
جَٰهَدُواْ
وَصَبَرُوٓاْ
إِنَّ
رَبَّكَ
مِنۢ
بَعۡدِهَا
لَغَفُورٞ
رَّحِيمٞ
١١٠
Then, verily! Your Lord - for those who emigrated after they had been put to trials and thereafter strove hard and fought (for the Cause of Allâh) and were patient, verily, your Lord afterward is, Oft-Forgiving, Most Merciful.
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
…