Uqba said to Hudhayfah, "Won't you tell us what you heard from the Prophet ﷺ?"He replied, "I heard him say, 'A man was approaching death, and when he had given up hope of life, he instructed his family, "When I die, gather a large amount of firewood for me and kindle a fire. When the flames have consumed my flesh and reached my bones, take the bones, grind them up, and scatter me in the sea on a hot or windy day." Allah then gathered him together and asked, "Why did you do this?" He answered, "Out of fear of You." So Allah forgave him.'"Uqba said, "And I too heard him say this."
أنه قال لحذيفة: ألا تحدثنا ما سمعت من النبي ﷺ قال: سمعته يقول: إن رجلا حضره الموت، لما أيس من الحياة أوصى أهله: إذا مت فأجمعوا لي خطبا كثيرا ثم أوروا نارا، حتى إذا أكلت لحمي وخلصت إلي عظمي، فخذوها فاطحنوها، فذروني في اليم في يوم حار أو راح، فجمعه الله، فقال: لم فعلت؟ قال: خشيتك! فغفر له. قال عقبة: وأنا سمعته يقول.
Bukhari related it in the Book of the Prophets (3479) from Musaddad, from Abu Awana, from Abdul-Malik bin Umayr, from Rabi bin Harash, who said, Uqbah said (as mentioned). Uqbah is Ibn Amr, and he used to say, "That man was a grave robber." Bukhari also related the story of Dajjal with this same chain, and Muslim also narrated it in the Book of Tribulations (2935), but without mentioning the story of the man. So whoever attributes it to the Sahihayn has erred. See the rest of this chapter in the Book of Repentance.