Psalm 4:8 I will both lay me down in peace, and sleep: for thou, Lord, only makest me dwell in safety.
If we have trusted in Christ for salvation, God has forgiven us, and always listens to us. He loves, hears, and answers. Look at your problems in the light of God’s power instead of looking at God in the shadow of your problems. When God lifts up the light of His countenance (smiles) upon us, we can lay down in peace and sleep. In spite of the problems surrounding him and the enemies he faced, David was able to get a good night’s sleep. Only the Lord makes me dwell in safety.
When we are experiencing a sleepless night we may respond to God’s presence and promise instead of to our problems. We pray, leave it with God, and trust Him to make me dwell in safety. Then God grants peaceful sleep. The problems that plague us in bed cause us to turn and return to Him, and then we lie down and sleep in peace.