2 Samuel 5:22-23
22-23Later there was a repeat performance. The Philistines came up again and deployed their troops in the Rephaim Valley. David again prayed to God.
23-24This time God said, "Don't attack them head-on. Instead, circle around behind them and ambush them from the grove of sacred trees. When you hear the sound of shuffling in the trees, get ready to move out. It's a signal that God is going ahead of you to smash the Philistine camp."