King James Version (KJV)
And the evil spirit from the LORD was upon Saul, as he sat in his house with his javelin in his hand: and David played with {his} hand.
Modern English
An evil spirit from Yahweh was on Saul, as he sat in his house with his spear in his hand; and David was playing with his hand.
Hebrew
וַתְּהִי֩ ר֨וּחַ יְהוָ֤ה ׀ רָעָה֙ אֶל־שָׁא֔וּל וְהוּא֙ בְּבֵית֣וֹ יוֹשֵׁ֔ב וַחֲנִית֖וֹ בְּיָד֑וֹ וְדָוִ֖ד מְנַגֵּ֥ן בְּיָֽד׃
vathiy rvḥa yhvah ׀ raʿah ʾel-shaʾvl vhvʾ bbeytvo yvosheb vaḥaniytvo byadvo vdavid mnagen byad