Then David fled from Naioth in Ramah. He came to Jonathan and asked, “What have I done? What is my iniquity? How have I sinned against your father, that he wants to take my life?”
Here, I. David makes a representation to Jonathan of his present troubles. While Saul lay bound by his trance at Naioth David escaped to the court, and got to speak with Jonathan. And it was happy for him that he had such a friend at court, when he had such an enemy on the throne.
Commenting on 1 Samuel 20:1-8
And David fled from Naioth in Ramah,.... While Saul was prophesying, or lay in a trance there: and came; to Gibeah, where Saul dwelt, and had his palace, and kept his court: and said before Jonathan; whom he found there, and for whose sake he thither fled to have his advice, and to use his interest with his father, and be his friend at court: what have I done?
And David fled from Naioth in Ramah, and came and said before Jonathan, What have I done? what [is] mine iniquity? and what [is] my sin before thy father, that he seeketh my life? (a) For Saul was detained, and prophesied a day and a night by God's providence, that David might have time to escape.