He instructed a man that when he lay down to sleep, he should say, "O Allah, You created my soul and You will take it. To You belong its death and its life. If You keep it alive, protect it, and if You cause it to die, forgive it. O Allah, I ask You for well-being."A man said to him, "Did you hear this from Umar?"He replied, "From one better than Umar, from the Messenger of Allah ﷺ."
أنه أمر رجلا إذا أخذ مضجعه قال: اللهم خلقت نفسي وأنت توفاها، لك مماتها ومحياها، إن أحييتها فاحفظها، وإن أمتها فاغفر لها، اللهم إني أسألك العافية. فقال له رجل: أسمعت هذا من عمر؟ فقال: من خير من عمر، من رسول الله ﷺ.