Hafiz Muhammad Ameen
At the end of the verse of Muharaba, these words appear: “Except for those who repent before you overpower them, then know that indeed Allah is Forgiving, Merciful.” From this, a person might understand that if someone repents before being apprehended after committing the aforementioned crimes, he will be forgiven. However, this is not absolutely correct, because sins such as banditry, violation of honor, and murder cannot be forgiven merely through repentance. Only apostasy (riddah) can be forgiven through repentance. Therefore, Ibn Abbas (radi Allahu anhu) clarified that this type of forgiveness is for the disbeliever who, after committing these crimes, accepts Islam, because Islam erases previous crimes. However, if a person commits these crimes while being a Muslim, he cannot be forgiven merely by repentance. Only a murtad (apostate), if he repents with remorse and accepts Islam again, will have the punishment for apostasy waived, because this relates to the rights of Allah (huquq Allah), whereas the other crimes pertain to the rights of people (huquq al-‘ibad). Those cannot be forgiven through repentance.
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 4051