It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, Luqman the Wise used to say: 'When something is entrusted to Allah, the Mighty and Majestic, as a trust, He protects it.'"
Imam Abd bin Humayd recorded this hadith, while Imam al-Nasa'i recorded it in al-Yawm wa al-Laylah with the addition of these words: "And I entrust your religion, your trust and the endings of your deeds to Allah." Imam al-Hakim, and from him Imam al-Bayhaqi in al-Sunan al-Kubra, recorded it through the route of al-Qasim bin Muhammad, who related: I was with Sayyiduna Ibn Umar (may Allah be pleased with them both) when a man came and said: "I intend to go on a journey." Sayyiduna Abdullah (may Allah be pleased with him) said: "Wait a little so that I may bid you farewell just as the Messenger of Allah (peace and blessings be upon him) used to bid us farewell." He (peace and blessings be upon him) used to supplicate: 'Astawdi'u Allaha dinaka wa amanataka wa khawatima 'amalik' (I entrust your religion, your trust and the end of your deeds to Allah).
Hadith Takhrij«المنتخب من مسند عبد بن حميد: قبيصة، عن سفيان، عن نهشل الضبي، عن أبي غالب، عن ابن عمر مرفوعًا. نهشل بن مجمع ثقة، وفي قبيصة عن الثوري كلام، وأبو غالب صدوق يخطئ (التقريب)، إن كان صاحب أبي أمامة. ورواه أحمد من طريق نهشل عن قزعة عن ابن عمر، وصحح أحمد شاكر إسناده» «أخرجه مسند أحمد برقم: 5573، وأخرجه السنن الكبرى للنسائي برقم: 10574، 10575، 10566، وأخرجه المعجم الكبير للطبراني برقم: 13571، وأخرجه صحيح ابن حبان برقم: 2693»