1.....(3.7) I layed down and slept...
The congregation of Israel said, I laid me down, away from prophecy, and I slept, apart from the Holy Spirit, I awake from Eliyyahu, as is said: "I will send you Eliyyahu the prophet" (Malachi 3:23).
RASHI
1. I layed down and slept...
My heart was clogged from worry and fear.
2. I awoke...
from my worry, because I trusted that the Lord would support me.
RADAK
1. the LORD sustains me
Haggadic interpretation (Midrash, Shoher Tov):
"I laid me down from prophecy, and slept from the Holy Spirit, and awaked by the agency of Hushai the Archite, for the LORD sustains me by means of Nathan the prophet." His intention is to say that by reason of the toil and fear in which he was the Holy Spirit was withdrawn from David; and the Holy Spirit does not rest (dwell) except in the midst of joy (Babli, Shabbath 30 b; Pesahim 117 a). And when he saw Hushai the Archite he rejoiced in him, for he knew that he would frustrate for him the counsel of Ahithophel, and he awoke, and the Holy Spirit rested upon him, and he said For the LORD sustaineth me, by the agency of Nathan the prophet, who said to him, "The Lord also hath put away thy sin: thou shall not die" (2 Sam. 12:13).