that he asked Anas bin Malik: "Did the Companions of the Messenger of Allah (ﷺ) use to shake each other's hand?" He said, "Yes."
Jami` at-Tirmidhi Book 42, Hadith 42