Abu Hurairah, God be pleased with him, narrates that the Holy Prophet, peace and blessings of Allah be upon him, said:
“Once there was a man who committed excesses against his own-self. When he was about to die, he told his sons, ‘Burn my body when I am dead, pulverize my remains into powder, then go to the ocean and throw the ashes into the wind. I swear by Allah, I fear that if God gets hold of me, He would inflict a punishment on me which has not been inflicted upon anyone before.’
Then the Holy Prophet, peace and blessings of Allah be upon him, said that the sons did as they had been told. But God ordered the earth to retrieve and return to all the particles that belonged to the man’s body from wherever they had fallen. Thus the man was brought before God. Allah asked him, ‘What made you do that?’ He answered, ‘My awe and fear of Thee forced me to do it.’ So God forgave him.” (Bukhari)