Al-Tirmidhi added, “It is a good (ḥasan) ḥadith.”
[Explanation]
Imam al-Nawawī (may Allah have mercy on him) placed this chapter in Riyāḍ al-Ṣāliḥīn under the etiquettes of greeting with salām, asking permission to enter, and related manners. One of these manners is handshaking: is it sunnah for a man, when he meets his brother, to shake his hand? The answer is yes—it is recommended, for this was part of the Companions’ conduct. Qatādah once asked Anas ibn Mālik (may Allah be pleased with him), “Did the Companions of the Prophet ﷺ used to shake hands?” He replied, “Yes.” The handshake is done with the right hand, and when the two shake hands they are forgiven before they part, which shows the virtue of handshaking when one truly meets another. This applies when the meeting involves conversation or something similar; merely passing someone in the marketplace was not the practice of the Companions. If you walk past people in the market, it suffices to greet them with salām, but if you will stand and speak with a person, then shake his hand.
We should also note that some people, after finishing an obligatory prayer, shake hands with those next to them, and at times he says