Al-Bara' bin Azib (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "When two Muslims meet and shake hands, and praise Allah and seek His forgiveness, they are both forgiven."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13569