Sahih al-Bukhari 7506
Isma'il narrated to us that Malik told me. He narrated from Abuz Zinad, Abuz Zinad from A'raj, and A'raj from Hazrat Abu Hurairah (ra), that the Messenger of Allah (saw) said: “A man who had never done any good deed said that when he died he should be burnt, and half of his ashes should be scattered on land and half in the sea. ‘By Allah, if Allah gets hold of him, He will surely punish him with such a punishment as He will not inflict on anyone in all the worlds.’ So Allah commanded the sea, and it gathered the particles that were in it; and He commanded the land, and it too gathered the particles that were in it. Then Allah said: ‘Why did you do this?’ He said: ‘Out of fear of You, and You know well.’ Allah covered him and pardoned him.”
AI-translated by Islam-Today