1 Samuel 30:1-8. David Inquired of the Lord.
David and his men had returned from battle to find their home of Ziklag destroyed and their wives and children captured. David’s two wives were also taken and the people talked of stoning him. Yet before pursuing the enemy and going to rescue their families, David took the time to inquire of the Lord. He didn’t act out of despair or fear. He sought the Lord. May we do the same, and seek Your will, and obey what You speak to us, and not act out of despair, fear, or vengeance.
"Then it happened when David and his men came to Ziklag on the third day, that the Amalekites had made a raid on the Negev and on Ziklag, and had overthrown Ziklag and burned it with fire; and they took captive the women and all who were in it, both small and great, without killing anyone, and carried them off and went their way. When David and his men came to the city, behold, it was burned with fire, and their wives and their sons and their daughters had been taken captive. Then David and the people who were with him lifted their voices and wept until there was no strength in them to weep. Now David’s two wives had been taken captive, Ahinoam the Jezreelitess and Abigail the widow of Nabal the Carmelite. Moreover David was greatly distressed because the people spoke of stoning him, for all the people were embittered, each one because of his sons and his daughters. But David strengthened himself in the Lord his God.
Then David said to Abiathar the priest, the son of Ahimelech, “Please bring me the ephod.” So Abiathar brought the ephod to David. David inquired of the Lord, saying, “Shall I pursue this band? Shall I overtake them?” And He said to him, “Pursue, for you will surely overtake them, and you will surely rescue all.” "
1 Samuel 30:1-8 New American Standard Bible (NASB)