The Prophet (ﷺ) said: Two Muslims will not meet and shake hands having their sins forgiven them before they separate.

Sunan Abi Dawud Book 43, Hadith 440