Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:46:31

O our people, respond to the Messenger of Allah and believe in him; Allah will forgive for you your sins and protect you from a painful punishment.  

O our people! Respond to God’s summoner, Muhammad (s), by embracing faith, and believe in him, and He, God, will forgive you some of your sins, because some of these ˹sins˺ are wrongs ˹done to others˺ and which ˹therefore˺ can only be forgiven after those wronged are reconciled — and shelter you from a painful chastisement.
القرآن:٤٦:٣١

يَا قَوْمَنَا أَجِيبُوا دَاعِيَ اللَّهِ وَآمِنُوا بِهِ يَغْفِرْ لَكُمْ مِنْ ذُنُوبِكُمْ وَيُجِرْكُمْ مِنْ عَذَابٍ أَلِيمٍ  

{يا قومنا أجيبوا داعي الله} محمدا ﷺ إلى الإيمان {وآمنوا به يغفر} الله {لكم من ذنوبكم} أي بعضها لأن منها المظالم ولا تغفر إلا برضا أصاحبها {ويجركم من عذاب أليم} مؤلم.