Sunan Ibn Majah, Hadith 540 ⓘ
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."
حَدَّثَنَا مُحَمَّدُ بْنُ رُمْحٍ، أَنْبَأَنَا اللَّيْثُ بْنُ سَعْدٍ، عَنْ يَزِيدَ بْنِ أَبِي حَبِيبٍ، عَنْ سُوَيْدِ بْنِ قَيْسٍ، عَنْ مُعَاوِيَةَ بْنِ حُدَيْجٍ، عَنْ مُعَاوِيَةَ بْنِ أَبِي سُفْيَانَ، أَنَّهُ سَأَلَ أُخْتَهُ أُمَّ حَبِيبَةَ زَوْجَ النَّبِيِّ ـ صلى الله عليه وسلم ـ هَلْ كَانَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ يُصَلِّي فِي الثَّوْبِ الَّذِي يُجَامِعُ فِيهِ قَالَتْ نَعَمْ إِذَا لَمْ يَكُنْ فِيهِ أَذًى .
also referenced under: Book 1, Hadith 583 (In-Book) & Volume 1, Book 1, Hadith 540 (DarusSalam)