(2) باب إِذَا لَمْ يَجِدْ مَاءً وَلاَ تُرَابًا
Narrated `Urwa's father:
Aisha said, "I borrowed a necklace from Asma' and it was lost. So Allah's Messenger (ﷺ) sent a man to search for it and he found it. Then the time of the prayer became due and there was no water. They prayed (without ablution) and informed Allah's Messenger (ﷺ) about it, so the verse of Tayammum was revealed." Usaid bin Hudair said to `Aisha, "May Allah reward you. By Allah, whenever anything happened which you did not like, Allah brought good for you and for the Muslims in that."
Reference: Sahih al-Bukhari 336
In-book reference: Book 7, Hadith 3
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 7, Hadith 332