The Midianites and the Amalekites and all the people of the east lay along the valley as thick as locusts; and their camels were without number, countless as the sand on the seashore. When Gideon arrived, there was a man telling a dream to his comrade; and he said, "I had a dream, and in it a cake of barley bread tumbled into the camp of Midian, and came to the tent, and struck it so that it fell; it turned upside down, and the tent collapsed." And his comrade answered, "This is no other than the sword of Gideon son of Joash, a man of Israel; into his hand God has given Midian and all the army."
When Gideon heard the telling of the dream and its interpretation, he worshiped; and he returned to the camp of Israel, and said, "Get up; for the LORD has given the army of Midian into your hand." After he divided the three hundred men into three companies, and put trumpets into the hands of all of them, and empty jars, with torches inside the jars, he said to them, "Look at me, and do the same; when I come to the outskirts of the camp, do as I do. When I blow the trumpet, I and all who are with me, then you also blow the trumpets around the whole camp, and shout, 'For the LORD and for Gideon!'"
So Gideon and the hundred who were with him came to the outskirts of the camp at the beginning of the middle watch, when they had just set the watch; and they blew the trumpets and smashed the jars that were in their hands. So the three companies blew the trumpets and broke the jars, holding in their left hands the torches, and in their right hands the trumpets to blow; and they cried, "A sword for the LORD and for Gideon!" Every man stood in his place all around the camp, and all the men in camp ran; they cried out and fled. When they blew the three hundred trumpets, the LORD set every man's sword against his fellow and against all the army; and the army fled as far as Beth-shittah toward Zererah, as far as the border of Abel-meholah, by Tabbath.