1 Samuel 30:1-8
30 Now when David and his men came to Ziklag on the third day, the Amalekites had made a raid against the Negeb and against Ziklag. They had overcome Ziklag and burned it with fire 2 and taken captive the women and all who were in it, both small and great. They killed no one, but carried them off and went their way. 3 And when David and his men came to the city, they found it burned with fire, and their wives and sons and daughters taken captive. 4 Then David and the people who were with him raised their voices and wept until they had no more strength to weep. 5 David’s two wives also had been taken captive, Ahinoam of Jezreel and Abigail the widow of Nabal of Carmel. 6 And David was greatly distressed, for the people spoke of stoning him, because all the people were bitter in soul, each for his sons and daughters. But David strengthened himself in the Lord his God.
7 And David said to Abiathar the priest, the son of Ahimelech, “Bring me the ephod.” So Abiathar brought the ephod to David. 8 And David inquired of the Lord, “Shall I pursue after this band? Shall I overtake them?” He answered him, “Pursue, for you shall surely overtake and shall surely rescue.”