Sayyiduna Ibn Abbas (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) said: "Whoever enters the House of Allah enters into a good deed and comes out of evil, forgiven."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11442