The Prophet ﷺ said: If two Muslims meet, shake hands, praise Allah, and ask Him for forgiveness, they will be forgiven.
قَالَ رَسُولُ اللَّهِ ﷺ إِذَا الْتَقَى الْمُسْلِمَانِ فَتَصَافَحَا وَحَمِدَا اللَّهَ ﷻ وَاسْتَغْفَرَاهُ غُفِرَ لَهُمَا
The Prophet ﷺ said: If two Muslims meet, shake hands, praise Allah, and ask Him for forgiveness, they will be forgiven.
قَالَ رَسُولُ اللَّهِ ﷺ إِذَا الْتَقَى الْمُسْلِمَانِ فَتَصَافَحَا وَحَمِدَا اللَّهَ ﷻ وَاسْتَغْفَرَاهُ غُفِرَ لَهُمَا
The Prophet ﷺ said: If two Muslims meet, shake hands, praise Allah, and ask Him for forgiveness, they will be forgiven. (Using translation from Abū Dāʾūd 5211)
"إذا الْتَقَى المسلمانِ (فتصافَحَا) . وَحَمِدَا الله واستْغَفْراهُ غَفَر الله لَهُما".
("إذا الْتقى المسلمان فتصافحا وذكرا الله لم يتفرقا حتى يغفر لهما" .