Mishkat al-Masabih 533
وَعَن أبي سعيد الْخُدْرِيّ قَالَ: خَرَجَ رَجُلَانِ فِي سَفَرٍ فَحَضَرَتِ الصَّلَاةُ وَلَيْسَ مَعَهُمَا مَاءٌ فَتَيَمَّمَا صَعِيدًا طَيِّبًا فَصَلَّيَا ثُمَّ وَجَدَا الْمَاءَ فِي الْوَقْتِ فَأَعَادَ أَحَدُهُمَا الصَّلَاة وَالْوُضُوء وَلَمْ يَعُدِ الْآخَرُ ثُمَّ أَتَيَا رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فذكرا ذَلِك لَهُ فَقَالَ لِلَّذِي لَمْ يُعِدْ: «أَصَبْتَ السُّنَّةَ وَأَجْزَأَتْكَ صَلَاتُكَ» وَقَالَ لِلَّذِي تَوَضَّأَ وَأَعَادَ: «لَكَ الْأَجْرُ مَرَّتَيْنِ» . رَوَاهُ أَبُو دَاوُدَ وَالدَّارِمِيُّ وَرَوَى النَّسَائِيُّ نَحوه
From Abu Saʿid al-Khudri, who said: Two men went 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. 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 one who performed wudu and repeated: "You have the reward twice." Reported by Abu Dawud and ad-Darimi, and an-Nasaʾi reported something similar.