to understand
Every humanity must have committed sins or wrongdoing, no human being is pure and perfect. This sin can sin to God, sin to man or sin to nature, including animals or plants.
Sin to Allah SWT, can be in the form of worship, can be in the form of arrogance, prejudice to God, disobedience or vice, adultery, and the highest is to associate with Him.
Sin to mnusia, in the form of disobedience to both parents, killing people, crueling people, lying or cheating, slandering, guilty, cursing and so forth.
Sin to nature, in the form of damaging the environment, to eradicate indiscriminate trees resulting in disaster, torture of animals, not feeding their pets and so forth.
But more importantly, is that after having sinned, then we repent and repent to Allah SWT or if it is a form of sin to man, then we must immediately apologize. That is the basic attitude and character of the righteous.