Bulugh al-Maram 133
وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ - رضي الله عنه - قَالَ: خَرَجَ رَجُلَانِ فِي سَفَرٍ, فَحَضَرَتْ الصَّلَاةُ - وَلَيْسَ مَعَهُمَا مَاءٌ - فَتَيَمَّمَا صَعِيدًا طَيِّبًا, فَصَلَّيَا, ثُمَّ وَجَدَا الْمَاءَ فِي الْوَقْتِ. فَأَعَادَ أَحَدُهُمَا الصَّلَاةَ وَالْوُضُوءَ, وَلَمْ يُعِدِ الْآخَرُ, ثُمَّ أَتَيَا رَسُولَ اللَّهِ - صلى الله عليه وسلم - فَذَكَرَا ذَلِكَ لَهُ, فَقَالَ لِلَّذِي لَمْ يُعِدْ: «أَصَبْتَ السُّنَّةَ وَأَجْزَأَتْكَ صَلَاتُكَ» وَقَالَ لِلْآخَرِ: «لَكَ الْأَجْرُ مَرَّتَيْنِ». رَوَاهُ أَبُو دَاوُدَ, و النَّسَائِيُّ.
From Abu Saʿid al-Khudri, may Allah be pleased with him, who said: Two men set out on a journey, and the time of prayer came while they had no water with them. So they performed tayammum with clean earth and prayed. Then they found water within the time [of the prayer]. One of them repeated the prayer and the wudu, and the other did not repeat. Then they came to the Messenger of Allah ﷺ and mentioned that to him. He said to the one who did not repeat: "You followed the Sunnah, and your prayer sufficed you." And he said to the other: "You have the reward twice." Narrated by Abu Dawud and an-Nasaʾi.