This is a short bedtime prayer, written from the King James Version.
Night is a good time to tell the truth about the day and then leave it with God. Psalm 4 speaks of lying down in peace because the Lord makes his people dwell in safety. It is a prayer, not a guarantee that sleep will come easily.
Jesus invites the weary to come to him for rest. That rest is his gift. You do not have to feel it before you may lie down.
I lay me down
Lord, I lay down in peace, and I ask for sleep, because you make your people dwell in safety. The day is finished. I leave it with you.
“I will both lay me down in peace, and sleep: for thou, LORD, only makest me dwell in safety.”