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."
Sunan Ibn Majah Book 1, Hadith 274