Sayyidina Abu Hurayrah (RA) reported that Allah’s Messenger said, ‘If anyone performs Hajj, not being immodest (with women) or sinful (and wickedfully transgressing), his past sins are forgiven.”
[Ahmed10278, Bukhari 1819, Muslim 1350, Nisai 2626, Ibn e Majah 2889]