Sayyiduna al-Bara' bin Azib (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "Whenever two Muslims meet and shake hands, they are forgiven before they part."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13571