It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that when the Noble Prophet (peace and blessings be upon him) would bid someone farewell, he would say: "I entrust your religion, your trust, and the end of your deeds to Allah."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 8694
Hadith Gradingحکم دارالسلام:صحيح لغيره، وهذا إسناد ضعيف لأجل ابن لهيعة