180كُتِبَ عَلَيْكُمْ إِذَا حَضَرَ أَحَدَكُمُ ٱلْمَوْتُ إِن تَرَكَ خَيْرًا ٱلْوَصِيَّةُ لِلْوَٰلِدَيْنِ وَٱلْأَقْرَبِينَ بِٱلْمَعْرُوفِ ۖ حَقًّا عَلَى ٱلْمُتَّقِينَ
181فَمَنۢ بَدَّلَهُۥ بَعْدَ مَا سَمِعَهُۥ فَإِنَّمَآ إِثْمُهُۥ عَلَى ٱلَّذِينَ يُبَدِّلُونَهُۥٓ ۚ إِنَّ ٱللَّهَ سَمِيعٌ عَلِيمٌ
182فَمَنْ خَافَ مِن مُّوصٍ جَنَفًا أَوْ إِثْمًا فَأَصْلَحَ بَيْنَهُمْ فَلَآ إِثْمَ عَلَيْهِ ۚ إِنَّ ٱللَّهَ غَفُورٌ رَّحِيمٌ
[180-182] It has been prescribed for you that when death approaches one of you and he is leaving some property behind him, he should bequeath it equitably for his parents and relatives : it is an obligation on those who tear Allah.182 Then if those, who heard the will, change it, they themselves shall bear the sin of this. Allah hears everything and knows everything. If, however. one apprehends genuinely that the testator had ( intentionally or unintentionally ) done some injustice, and then alters the will to set things right between the parties concerned, in that case he does not incur any sin. Allah is Forgiving and Merciful.
182This commandment about making a will for the distribution of property was given at a time when the law of inheritance had not yet been prescribed. Its object was to safeguard the rights of the lawful heirs against injustice. Afterwards when Allah Himself prescribed a law for the distribution of inheritance (as laid down in Surah An-Nisa below), the Holy Prophet (upon whom be peace) enjoined the following two rules in explanation of the commandments concerning the making of will and distribution of inheritance: