Surah Al-Baqara

2:182

فَمَنْ خَافَ مِن مُّوصٍۢ جَنَفًا أَوْ إِثْمًۭا فَأَصْلَحَ بَيْنَهُمْ فَلَآ إِثْمَ عَلَيْهِ ۚ إِنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌۭ

But if one fears from the bequeather [some] error or sin and corrects that which is between them, there is no sin upon him. Indeed, Allah is Forgiving and Merciful.

Tafsir 2:182

Whoever knows that there is an error in judgement from the person who made the will, or that there is some injustice in it, and advises the person and rectifies the wrong, and reconciles between those who are in disagreement about it, then there is no blame on them; rather they are rewarded for putting things right. Allah is Forgiving towards whomever of His servants repents to Him, and is Compassionate with them.