Sunan an-Nasa'i #434.2 · The Book of Ghusl and Tayammum

Sunan an-Nasa'iIt was narrated from Tariq bin Shaihab that a man became Junub and did not pray. He came to the Prophet
Sunan an-Nasa'i · Book 4 · The Book of Ghusl and Tayammum
Sunan an-Nasa'i · كتاب 4 · كتاب الغسل والتيمم
"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
أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الأَعْلَى، أَنْبَأَنَا أُمَيَّةُ بْنُ خَالِدٍ، حَدَّثَنَا شُعْبَةُ، أَنَّ مُخَارِقًا، أَخْبَرَهُمْ عَنْ طَارِقِ بْنِ شِهَابٍ، أَنَّ رَجُلاً، أَجْنَبَ فَلَمْ يُصَلِّ فَأَتَى النَّبِيَّ صلى الله عليه وسلم فَذَكَرَ ذَلِكَ لَهُ فَقَالَ ‏
"‏ أَصَبْتَ ‏"‏ ‏.‏ فَأَجْنَبَ رَجُلٌ آخَرُ فَتَيَمَّمَ وَصَلَّى فَأَتَاهُ فَقَالَ نَحْوًا مِمَّا قَالَ لِلآخَرِ يَعْنِي ‏"‏ أَصَبْتَ ‏"‏ ‏.‏
Reference : Sunan an-Nasa'i 434.2In-book reference : Book 4, Hadith 40