An-Nahl • EN-TAFISR-IBN-KATHIR
﴿ ثُمَّ إِنَّ رَبَّكَ لِلَّذِينَ هَاجَرُوا۟ مِنۢ بَعْدِ مَا فُتِنُوا۟ ثُمَّ جَٰهَدُوا۟ وَصَبَرُوٓا۟ إِنَّ رَبَّكَ مِنۢ بَعْدِهَا لَغَفُورٌۭ رَّحِيمٌۭ ﴾
“And yet, behold, thy Sustainer [grants His forgiveness] unto those who forsake the domain of evil after having succumbed to its temptation, and who thenceforth strive hard [in God's cause] and are patient in adversity: behold, after such [repentance] thy Sustainer is indeed much-forgiving, a dispenser of grace!”
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.