Some jump first and ask questions of God later.
And when David inquired of the LORD, he said, Thou shalt not go up; but fetch a compass behind them, and come upon them over against the mulberry trees. And let it be, when thou hearest the sound of a going in the tops of the mulberry trees, that then thou shalt bestir thyself: for then shall the LORD go out before thee, to smite the host of the Philistines. And David did so, as the LORD had commanded him; and smote the Philistines from Geba until thou come to Gazer. (2 Samuel 5:23-25 KJV)
David did not assume this crisis he faced was the same as the last. He inquired of the Lord before bringing about any course of action. God had a different set of circumstances and a new plan of attack unlike the first plan already accomplished.
This brings to mind the job of a police officer or firefighter who can never assume he know or understand a situation from the last response he had to the same address or from a similar situation. He or she must treat each call, even to the same address or area, as a different circumstance than any other situation. To assume any circumstance is the same as another past incident is to place themselves and others in possible jeopardy. Circumstances in difficult situations must always be assessed from diverse viewpoints rather than jumping in unprepared or from a blind angle.
It is the same with David in this circumstance. David did not take on this new situation already assuming to having all the answers at hand. He sought out instruction and guidance first from God’s holy viewpoint before diving in according to of his own accord to handle the situation. Doing so would have placed him in certain danger. God’s viewpoint is always exceedingly greater than our own limited view from the constraints of this earth.
God had a different plan in the works this time. He directed David to use a compass and come in across the tops of the mulberry trees while the Lord smote the Philistine’s opening the way forward for him. Not allowing God to work in his situation would have brought certain danger and likely death to David. God had the perfect plan already set in place according to His perfect viewpoint from the heavenly realm.