Abu Saeed Khudri reported,

The Prophet ﷺ mentioned a man from those who came before you. He said a word, meaning, Allah had given him wealth and children. When death approached him, he said to his sons, "What kind of father have I been to you?"They replied, "The best of fathers."He said, "I have not stored up any good with Allah, and if Allah has power over me, He will punish me. So look, when I die, burn me, and when I am reduced to charcoal, grind me down. Then on a day of violent wind, scatter me in it."The Prophet of Allah ﷺ said, "He took their solemn pledges on this, by my Lord, and they did so. They scattered him on a windy day, and Allah عز وجل said, 'Be,' and there he was, a man standing."Allah said, "My servant, what made you do what you did?"He said, "Fear of You," or, "dread of You."The Prophet said, "Nothing else met him then but that He had mercy on him."And on another occasion he said, "Nothing else met him but that."

Azami 11416

Sahih

عن أبي سعيد

عن النبي ﷺ: أنه ذكر رجلا فيمن سلف، أو فيمن كان قبلكم، قال: كلمة: يعني- أعطاه الله مالا وولدا، فلما حضرت الوفاة، قال لبنيه: أي أب كنت لكم؟ قالوا: خير أب، قال: فإنه لم يبتئر، أو لم يبتئز عند الله خيرا، وإن يقدر الله عليه يعذبه، فانظروا إذا مت فأحرقوني، حتى إذا صرت فحما فاسحقوني، أو قال: فاسحكوني، فإذا كان يوم ريح عاصف فأذروني فيها، فقال نبي ﷺ: فأخذ مواثيقهم على ذلك وربي، ففعلوا ثم أذروه في يوم عاصف، فقال الله عز وجل: كن، فإذا هو رجل قائم، قال الله: أي عبدي ما حملك على أن فعلت ما فعلت؟ قال مخافتك، أو: فرق منك، قال: فما تلافاه أن رحمه عندها. وقال مرة أخرى: فما تلافاه غيرها.

الأعظمي 11416صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Repentance and seeking forgiveness
Chapter
Comprehensive and general supplications
Section
Regarding one who feared Allah's punishment and ordered his body burned after death, not knowing that Allah is Forgiving and Merciful
Numbering
Jami al-Kamil 11416 (2nd edition)
Azami 11416