It was narrated that Hudhaifah said: "The Prophet came out and met me when I was sexually impure, so I kept away from him. Then I had a bath and came to him. He said: “What is the matter with you?' I said: “I was sexually impure.' The Messenger of Allah said: “The Muslim does not become impure”””"
SahihSahihSahihBook 1 · Hadith 269