عن أبي هريرة رضي الله عنه مرفوعاً: «مَنْ حَجَّ، فلَمْ يَرْفُثْ، وَلم يَفْسُقْ، رَجَعَ كَيَوْمَ وَلَدْتُهُ أُمُّهُ».
[صحيح] - [متفق عليه]
Abu Hurayrah (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "Whoever performs Hajj and does not commit obscenity or commit any evil therein will go back (free of sin) as on the day his mother gave birth to him."
Sahih/Authentic. - [Al-Bukhari and Muslim]
A Muslim who makes Hajj for the sake of Allah, the Almighty, and does not say foul words or do something bad during the Hajj rituals shall return as clear from sins as on the day he was born. The sins and misdeeds forgiven in Hajj are the minor ones, but major sins require repentance.