1 Chronicles 14:15
And it shall be, when thou shalt hear a sound of going in the tops of the mulberry trees, that then thou shalt go out to battle: for God is gone forth before thee to smite the host of the Philistines.
Cross-reference
In Judges 4:14, Deborah says 'the Lord has gone out before you' — the exact phrase used here for David.
In 1 Samuel 14:9-22, Jonathan uses a sign (the Philistines' words) to attack; David uses a sound as a sign.
In 2 Kings 7:6, God causes Syrians to hear a noise of a great army, causing panic; here God uses a sound to signal victory.
2 Samuel 5:24 is the identical account of this verse, recording the same instruction about the sound of marching.
Isaiah 13:4 describes the noise of a multitude as the Lord musters an army, echoing the sound of marching in the balsam trees as God's battle signal.
Leviticus 26:36 speaks of a leaf's sound causing panic; here a marching sound signals God's advance — opposite effects.
In Judges 7:9, God commands Gideon to attack because He has delivered the enemy, similar to David's command here.
In Judges 7:15, Gideon hears a sign (dream) and then declares the Lord has delivered; David hears a sign (sound) and goes.
In 2 Kings 19:7, God sends a rumor to make Sennacherib retreat; similar use of sound to defeat enemies.
Isaiah 45:1 says God goes before Cyrus his anointed, similar to God going before David here—both show divine leadership over anointed leaders.