Sunan an-Nasa'i, Hadith 434 ⓘ
It was narrated from 'Ata' bin Yasar that two men - and he quoted the Hadith.
أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ، عَنْ لَيْثِ بْنِ سَعْدٍ، قَالَ حَدَّثَنِي عَمِيرَةُ، وَغَيْرُهُ، عَنْ بَكْرِ بْنِ سَوَادَةَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، أَنَّ رَجُلَيْنِ، وَسَاقَ الْحَدِيثَ، .
also referenced under: Book 4, Hadith 39 (In-Book) & Volume 1, Book 4, Hadith 434 (DarusSalam)
It was narrated from Tariq bin Shaihab that a man became Junub and did not pray. He came to the Prophet and told him about that, and he said: "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."
أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الأَعْلَى، أَنْبَأَنَا أُمَيَّةُ بْنُ خَالِدٍ، حَدَّثَنَا شُعْبَةُ، أَنَّ مُخَارِقًا، أَخْبَرَهُمْ عَنْ طَارِقِ بْنِ شِهَابٍ، أَنَّ رَجُلاً، أَجْنَبَ فَلَمْ يُصَلِّ فَأَتَى النَّبِيَّ صلى الله عليه وسلم فَذَكَرَ ذَلِكَ لَهُ فَقَالَ " أَصَبْتَ " . فَأَجْنَبَ رَجُلٌ آخَرُ فَتَيَمَّمَ وَصَلَّى فَأَتَاهُ فَقَالَ نَحْوًا مِمَّا قَالَ لِلآخَرِ يَعْنِي " أَصَبْتَ " .
also referenced under: Book 4, Hadith 40 (In-Book) & Volume 1, Book 4, Hadith 435 (DarusSalam)