It was narrated from Mu'awiyah bin Abu Sufyan that: He asked his sister Umm Habibah, the wife of the Prophet: "Did the Messenger of Allah ever offered prayer in a garment in which he had sexual intercourse?" She said: "Yes, if there was nothing noxious on it"
SahihSahihSahihBook 1 · Hadith 274