I Samuel 30:1-8 NKJV
Now it happened, when David and his men came to Ziklag, on the third day, that the Amalekites had invaded the South and Ziklag, attacked Ziklag and burned it with fire, and had taken captive the women and those who were there, from small to great; they did not kill anyone, but carried them away and went their way. So David and his men came to the city, and there it was, burned with fire; and their wives, their sons, and their daughters had been taken captive. Then David and the people who were with him lifted up their voices and wept, until they had no more power to weep. And David’s two wives, Ahinoam the Jezreelitess, and Abigail the widow of Nabal the Carmelite, had been taken captive. Now 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 his daughters. But David strengthened himself in the LORD his God.
Then David said to Abiathar the priest, Ahimelech’s son, “Please bring the ephod here to me.” And Abiathar brought the ephod to David. So David inquired of the LORD, saying, “Shall I pursue this troop? Shall I overtake them?”
And He answered him, “Pursue, for you shall surely overtake them and without fail recover all.”
NKJV: New King James Version