All Sins Are a Betrayal of Allāh and His Messenger ﷺ
يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تَخُونُوا اللَّهَ وَالرَّسُولَ وَتَخُونُوا أَمَانَاتِكُمْ وَأَنْتُمْ تَعْلَمُونَ
O you are upon [Islamic] faith [in your hearts, speech, and actions], do not betray Allāh and the Messenger, nor betray the trusts placed upon you, when you know. (Al-Anfāl, 27)
Ibn Kathīr, may Allāh have mercy on him, said:
Betrayal [in this verse] covers [all] sins, minor and major, those that affect only the sinner and those that affect others. ʿAlī ibn Abī Ṭalḥah said, from Ibn ʿAbbās:
…nor betray the trusts placed upon you…. (Al-Anfāl, 27)
Al-Amānah are the deeds that Allāh has entrusted slaves with, i.e., the obligatory [deeds]; He is saying [in the verse what in English means]: “Do not betray,” i.e., do not infringe upon [the commands of Allāh and His Messenger ﷺ].
Tafsīr Ibn Kathīr, Al-Anfāl, verse 27.