Abu Saeed Khudri reported,

The Prophet ﷺ said that a man among those who came before you was granted wealth and children by Allah. He said to his children, "You must do what I command you, or I will leave my inheritance to others. When I die, burn me," and most of what I recall is that he said, "then grind me to dust and scatter me in the wind, for I have stored up no good with Allah, and Allah is able to punish me."He took a solemn pledge from them, and they did exactly that to him, by my Lord.Then Allah said, "What drove you to do what you did?"He replied, "Fear of You."Nothing else saved him but that.

Muslim 6984

Sahih

حدثني عبيد الله بن معاذ العنبري حدثنا أبي حدثنا شعبة عن قتادة سمع عقبة بن عبد الغافر يقول سمعت

أبا سعيد الخدري يحدث

عن النبي ﷺ أن رجلا فيمن كان قبلكم راشه الله مالا وولدا فقال لولده لتفعلن ما آمركم به أو لأولين ميراثي غيركم إذا أنا مت فأحرقوني وأكثر علمي أنه قال ثم اسحقوني واذروني في الريح فإني لم أبتهر عند الله خيرا وإن الله يقدر علي أن يعذبني قال فأخذ منهم ميثاقا ففعلوا ذلك به وربي فقال الله ما حملك على ما فعلت فقال مخافتك قال فما تلافاه غيرها

مسلم 6984صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tawba
Chapter
Vastness of Allah's mercy and that it precedes His wrath
Numbering
Darussalam 6984
Muslim 6984