Sunan an-Nasa'i #324 · The Book of Purification

Sunan an-Nasa'iIt was narrated from Tariq that a man became Junub and did not pray
Sunan an-Nasa'i · Book 1 · The Book of Purification
Sunan an-Nasa'i · كتاب 1 · كتاب الطهارة
"You did the right thing." Another man became Junub and performed Tayammum and prayed, and he came to him and he said something similar to what he had told the other man - meaning, you did the right thing
أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الأَعْلَى، قَالَ حَدَّثَنَا أُمَيَّةُ بْنُ خَالِدٍ، قَالَ أَنْبَأَنَا شُعْبَةُ، أَنَّ مُخَارِقًا، أَخْبَرَهُمْ عَنْ طَارِقٍ، أَنَّ رَجُلاً، أَجْنَبَ فَلَمْ يُصَلِّ فَأَتَى النَّبِيَّ صلى الله عليه وسلم فَذَكَرَ ذَلِكَ لَهُ فَقَالَ ‏
"‏ أَصَبْتَ ‏"‏ ‏.‏ فَأَجْنَبَ رَجُلٌ آخَرُ فَتَيَمَّمَ وَصَلَّى فَأَتَاهُ فَقَالَ نَحْوَ مَا قَالَ لِلآخَرِ يَعْنِي ‏"‏ أَصَبْتَ ‏"‏ ‏.‏
Reference : Sunan an-Nasa'i 324In-book reference : Book 1, Hadith 325