31إِن تَجْتَنِبُوا۟ كَبَآئِرَ مَا تُنْهَوْنَ عَنْهُ نُكَفِّرْ عَنكُمْ سَيِّـَٔاتِكُمْ وَنُدْخِلْكُم مُّدْخَلًا كَرِيمًا
[31] If you abstain from the heinous sins from which you are being forbidden, We will remit your trivial offenses53 and admit you to a place of honor.
53That is, "We are not narrow-minded and prejudiced that We should take Our servants to task for each and every trivial offense. But if you commit wicked and heinous sins, then you shall have to render an account of the trivial offenses as well. "
Here it will be worthwhile to understand the basic differences between the "heinous sins" and the "trivial offenses". As far as I have understood from a critical study of the Qur'an and the Sunnah (and the correct and right knowledge is only with Allah), I have .come to the conclusion that the following three things make a sin heinous:
(1) The violation of the rights of Allah, or of parents, or of other human beings, or one's own rights. The wickedness of the sin increases in proportion to the sanctity of the right that is violated. That is why the Qur'an calls a sin Zulm (iniquity) and declares shirk to be a gross iniquity.
(2) A sin becomes heinous, if it is committed to defy the Divine Laws. This is because the offender deliberately, boldly and shamelessly discards the Commandments and Prohibitions of Allah and intentionally does that which He prohibits, merely for the sake of disobedience, and impudently does not do that which He has commanded. The gravity of this sin increases in proportion to the impudence that is shown towards Allah in disobeying and discarding His Law. That is why the Qur'an calls sin fisq (disobedience) and ma` siyat (arrogance).
(3) The violation of those relations and the cutting off of those connections on the unification and integrity of which depends the peace of human life, makes a sin heinous whether these relations are between man and Allah or between man and man. The gravity of the sin of violation or the cutting off of a connection increases in proportion to the importance of the relation, and to the security contained in it. For instance, fornication in its different forms is in itself a heinous sin, for it corrupts human society. But in some forms it becomes far more heinous than in others. The sin of adultery committed by a married man is far more heinous than that committed by an unmarried man. Likewise, adultery with a married woman is a far greater sin than fornication with an unmarried woman. In the same way, sexual intercourse with the womenfolk of a neighbour is far more heinous than with others and incest with mother, sister or daughter become the most heinous sin conceivable because of the security and sanctity the relation provides. For the same reason the sin committed in the mosque is far more wicked than elsewhere. In the above instances, the difference in the gravity of the same sin is due to the difference in the nature of the sanctity of the relations and the security contained in them. This is why, sin is also called fujur (violation of relations).