ثُمَّ إِنَّ رَبَّكَ لِلَّذِينَ هَاجَرُوا مِن بَعْدِ مَا فُتِنُوا ثُمَّ جَاهَدُوا وَصَبَرُوا إِنَّ رَبَّكَ مِن بَعْدِهَا لَغَفُورٌ رَّحِيمٌ ١١٠
Thumma inna rabbaka lillatheena hajaroo min baAAdi ma futinoo thumma jahadoo wasabaroo inna rabbaka min baAAdiha laghafoorun raheemun
Then your Lord—for those who emigrated (i.e., left their homes and towns for the cause of Allah) after they had been made to suffer from trials (and atrocities at the hands of militant and tyrant disbelievers), then fought in the way of Allah and remained steadfast (in the face of violence, mischief, tyranny, oppression and terrorism); after that (O Glorious Beloved)—your Lord is Most Forgiving, Ever-Merciful. (16:110)
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 by emigrating, leaving their homeland, families and wealth behind, seeking the pleasure and forgiveness of Allah. They joined the believers and fought with them against the disbelievers, bearing hardship with patience. Allah tells them that after this, meaning after their giving in when put to the test, He will forgive them and show mercy to them when they are resurrected.
يَوْمَ تَأْتِى كُلُّ نَفْسٍ تُجَـدِلُ
((Remember) the Day when every person will come pleading) meaning making a case in his own defence.
عَن نَّفْسِهَا
(for himself.) means, no one else will plead on his behalf; not his father, not his son, nor his brother, nor his wife.
وَتُوَفَّى كُلُّ نَفْسٍ مَّا عَمِلَتْ
(and every one will be paid in full for what he did,) meaning whatever he did, good or evil.
وَهُمْ لاَ يُظْلَمُونَ
(and they will not be dealt with unjustly.) meaning there will be no decrease in the reward for good, and no increase in the punishment for evil. They will not be dealt with unjustly in the slightest way.