"You did the right thing." Then another man became Junub so he performed Tayammum and prayed. He came (to the Prophet ﷺ) who said to him what he had said to the other man- meaning, "You did the right thing."
أَنَّ رَجُلاً أَجْنَبَ فَلَمْ يُصَلِّ فَأَتَى النَّبِيَّ ﷺ فَذَكَرَ ذَلِكَ لَهُ فَقَالَ أَصَبْتَ فَأَجْنَبَ رَجُلٌ آخَرُ فَتَيَمَّمَ وَصَلَّى فَأَتَاهُ فَقَالَ نَحْوًا مِمَّا قَالَ لِلآخَرِ يَعْنِي أَصَبْتَ