We went out on a journey, and one of our men was struck by a stone which wounded him in the head. He had a nocturnal emission and asked his companions whether they could find any permission for him to perform ablution with earth, but they replied that they could not when he was able to get water; so the man washed and died. When we came to the Prophet he was told about that and said, "Then killed him, God kill them! Why did they not ask when they did not know? The only cure for ignorance is to ask. It would have been enough for him to use earth and tie a rag over the sore, then wipe over it and wash the rest of his body."
Abu Dawud transmitted it, and Ibn Majah transmitted it from ‘Ata’ b. Abu Rabah from Ibn ‘Abbas.
Abu Dharr reported God’s messenger as saying, "Good earth is a means of ablution for a Muslim, even if he does not find water for ten years; but when he finds water he should make it touch his skin, for that is better.”
Ahmad, Tirmidhi and Abu Dawud transmitted it, and Nasa’i has something similar up to "ten years”.
Two men went out on a journey, and when the time for prayer came, having no water with them, they performed ablution with good earth and then prayed. Immediately afterwards they found water, and one of them repeated the prayer with ablution, but the other did not. When they came to God’s messenger sometime afterwards they mentioned that, and he said to the one who did not repeat the prayer, "You have observed the sunna and your prayer was enough for you." To the one who had performed ablution and repeated the prayer he said, "You will have a twofold reward.”
Abu Dawud and Darimi transmitted it, and Nasa’i transmitted something similar.
He and Abu Dawud also transmitted it from ‘Ata’ b. Yasar in mursal form.
Abul Juhaim b. al-Harith b. as-Simma said, “I came upon the Prophet when he was passing water and saluted him, but he did not reply till he got up and went to a wall, and after scraping it with a stick which he had, he put his hands on the wall and wiped his face and his forearms; then he replied to my salutation.”
I have not found this version in the two Sahihs, or in al-Humaidi’s book; but Baghawi mentioned it in Sharh as-sunna, saying that this is a hasan tradition.