A man became ritually impure and did not pray. He came to the Prophet ﷺ and mentioned this to him.The Prophet ﷺ said, "You did the right thing."Another man became ritually impure, performed tayammum, and prayed. He came to the Prophet ﷺ, who said to him something similar to what he had said to the other, meaning, "You did the right thing."
أخبرنا محمد بن عبد الأعلى: أخبرنا خالد: حدثنا شعبة أن مخارقا أخبرهم
أن رجلا أجنب فلم يصل فأتى النبي ﷺ فذكر ذلك له فقال: أصبت. فأجنب رجل آخر فتيمم وصلى فأتاه فقال نحوا مما قال للآخر راني أصبت.