The Messenger of Allah ﷺ said, "Whoever performs the pilgrimage to this House and does not engage in obscenity or commit any wrongdoing returns as pure as the day his mother bore him."
أخبرنا أبو عمار الحسين بن حريث المروزي قال حدثنا الفضيل وهو ابن عياض عن منصور عن أبي حازم
قال رسول الله ﷺ من حج هذا البيت فلم يرفث ولم يفسق رجع كما ولدته أمه
Reported by Bukhari in the chapter on the one who is prevented from completing the rites, under the heading "The saying of Allah, Mighty and Sublime, 'So there is to be no obscenity...'" (no. 1819), and by Muslim in the book of Hajj, chapter on the merit of Hajj and Umrah (no. 1350), from the hadith of Mansur through the same chain. It is also found in Al-Kubra (no. 3606).