1 Samuel 30:5–6 (Wordstudy KJV):

And David’s two wives were [taken captives,] Ahinoam the Jezreelitess, and Abigail the wife of Nabal the Carmelite.
And David was greatly distressed; for the people spoke of stoning him, because the soul of all the people was grieved, [every man] for his sons and for his daughters: but David [encouraged himself] in the Lord his God.