King James Version (KJV)
David therefore besought God for the child; and David fasted, and went in, and lay all night upon the earth. {fasted: Heb. fasted a fast}
Modern English
David therefore begged God for the child; and David fasted, and went in, and lay all night on the ground.
Hebrew
וַיְבַקֵּ֥שׁ דָּוִ֛ד אֶת־הָאֱלֹהִ֖ים בְּעַ֣ד הַנָּ֑עַר וַיָּ֤צָם דָּוִד֙ צ֔וֹם וּבָ֥א וְלָ֖ן וְשָׁכַ֥ב אָֽרְצָה׃
vaybaqesh david ʾet-haʾelohiym bʿad hanaʿar vayaṣam david ṣvom vbaʾ vlan vshakab ʾarṣah