It is narrated from a man of Banu Amir that he said: I saw Sayyiduna Abu Dharr (may Allah be pleased with him) praying in the Mosque of Quba', wearing a Qatari cloak. I greeted him, but he did not return my greeting (during the prayer); when he had finished his prayer, he returned my greeting. I asked: "Are you Sayyiduna Abu Dharr (may Allah be pleased with him)?" He said: "Yes." Then (telling his story) he said: "The climate of Madinah did not suit me, so the Messenger of Allah (peace and blessings be upon him) ordered a herd of camels for me and instructed me to drink their milk and their urine." (The narrator says:) Ayyub (may Allah have mercy on him) fell silent at the word 'their urine'.
(Sayyiduna Abu Dharr (may Allah be pleased with him) further narrates:) I saw the Messenger of Allah (peace and blessings be upon him) with a group of Companions in the shade of the mosque. When he (peace and blessings be upon him) saw me, he said: "O Abu Dharr!" I said: "O Messenger of Allah (peace and blessings be upon him), I am ruined!" He (peace and blessings be upon him) asked: "What has ruined you?" or he said: "What is the matter?" I said: "O Messenger of Allah (peace and blessings be upon him), I live far away from water (in the desert) and I become sexually impure (junub); should I then pray without purification?" The narrator says: Then he (peace and blessings be upon him) called for water for me. An Abyssinian slave-girl brought water in a large bowl, in which the water was sloshing about and it was not completely full. So I screened myself behind a camel and performed the ritual bath. Sayyiduna Abu Dharr (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "O Abu Dharr, clean earth is sufficient for you, even if you do not find water for ten years; but when water becomes available to you, then let it touch your skin (body) (that is, perform the ritual bath)."
Abu Hafs narrated this hadith from Yazid bin Zuray', from Khalid al-Hadhdha', from Abu Qilabah (may Allah have mercy on him), from Amr bin Bujdan (may Allah have mercy on him), who said: I heard Sayyiduna Abu Dharr (may Allah be pleased with him); and then he narrated the complete hadith.
I say: Imam Abu Dawud recorded it in abridged form in his Sunan through the route of Ayyub from Abu Qilabah (may Allah have mercy on him).