Abu Saeed Khudri reported,

The Prophet ﷺ mentioned a man from those who came before you, and said a word meaning that Allah had granted him wealth and children. When death approached him, he asked his sons, "What kind of father have I been to you?"They replied, "The best of fathers."He said, "But I have not stored up any good with Allah, and if Allah has power over me, He will punish me. So when I die, burn me, and when I have turned to charcoal, grind me up," or he said, "crush me, and when there is a day of strong wind, scatter me in it."The Prophet of Allah ﷺ said, "He took their solemn oaths on this, and by my Lord, they did so. They scattered him on a windy day, and Allah عز وجل said, 'Be,' and at once he was a man standing there."Allah asked, "My servant, what made you do what you did?"He answered, "Fear of You," or, "Dread of You."The Prophet said, "Nothing made up for him at that point except that He had mercy on him."Another time he said, "Nothing made up for him besides that."I narrated this to Abu Uthman, and he said, "I heard this from Salman, except that he added in it, 'Scatter me in the sea,'" or as he related it.

Azami 8298

Sahih

عن أبي سعيد

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

الأعظمي 8298صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
News of the ancients
Section
Story of a man who instructed his family to burn him after his death
Numbering
Jami al-Kamil 8298 (2nd edition)
Azami 8298