Sayyidina Ibn Umar (RA) reported that when the Prophet bid someone farewell, he took him by his hand and would not let go till the man himself withdrew his hand. He would then say:
To Allah, entrust your faith, your trust and the consequences of your deed.
[Ahmed 4524, Ibn e Majah 2826]