The Prophet ﷺ said: Two Muslims will not meet and shake hands having their sins forgiven them before they separate. (Using translation from Abū Dāʾūd 5212)
قَالَ رَسُولُ اللهِ ﷺ مَا مِنْ مُسْلِمَيْنِ يَلْتَقِيَانِ فَيَتَصَافَحَانِ إِلَّا غُفِرَ لَهُمَا قَبْلَ أَنْ يَتَفَرَّقَا