I heard the Prophet ﷺ say, "A man was on the verge of death, and when he despaired of life, he instructed his family, 'When I die, gather a great deal of firewood for me, then kindle a fire until it consumes my flesh and reaches my bones. Then take my bones, grind them up, and scatter me in the sea on a hot or windy day.' So Allah gathered him together and asked him, 'Why did you do this?'He replied, 'Out of fear of You.'So Allah forgave him."
سمعت النبي ﷺ يقول: إن رجلا حضره الموت، لما أيس من الحياة أوصى أهله، إذا مت فاجمعوا لي حطبا كثيرا، ثم أوروا نارا، حتى إذا أكلت لحمي وخلصت إلى عظمي فخذوها فاطحنوها، فذروني في اليم في يوم حار أو راح، فجمعه الله فقال: لم فعلت؟ قال: خشيتك فغفر له.
Bukhari narrated it in the chapters on the prophets (3479), from Musaddad, who said, Abu Awana narrated to us, from Abdul-Malik bin Umayr, from Rabi bin Harash, who said, Uqbah said to Huzaifa, "Won't you tell us what you heard from the Prophet ﷺ?" He said, then he mentioned it.On this subject there is also a report from Abdullah bin Masud, that a man had never done any good deed at all except affirming the oneness of Allah. When death approached him, he said to his family, "When I die, take me and burn me until you reduce me to ashes, then crush me, then scatter me into the sea on a windy day." He said, so they did that to him. He said, and then he found himself in the grip of Allah. He said, so Allah said to him, "What led you to do what you did?" He said, "Fear of You." He said, so Allah forgave him.Imam Ahmad narrated it (3785), from Yahya bin Ishaq, who said, Hammad bin Salama informed us, from Asim bin Bahdala, from Abu Waail, from Abdullah bin Masud, who said, then he mentioned it as a stopped report.Abu Yaala narrated it (5105, 5056, 1002) through other chains from Abdullah bin Masud with the same wording, also as a stopped report.Tabarani narrated it in Al-Kabir (10/250) through another chain as a raised report, but it is defective. Haythami said in Al-Majmu (10/194), "Tabarani narrated it, and its chain is broken."So the correct view is that it is a stopped report, even though its ruling carries the same weight as a raised report, and that is why Ahmad included it in his Musnad.