Yahweh had protected them in the past (Isa 10:25-10:27)

“In a very little while,

My indignation

Will come to an end.

My anger will be directed

To their destruction.

Yahweh of hosts

Will wield a whip against them,

As when he smote Midian

At the rock of Oreb.

His staff will be over the sea.

He will lift it

As he did in Egypt.

In that day,

His burden will be removed

From your shoulder.

His yoke will be destroyed

From your neck.’”

Yahweh speaks directly via Isaiah about his love for Israel. His indignation at them will be short lived. In his anger, he will destroy the Assyrians with a whip. He will do this, just as he had helped the Israelites under Gideon against Oreb and the Midian people at the rock of Oreb in Judges, chapters 6-7. Then there is also an allusion to Yahweh’s staff at the parting of the Red Sea when the Israelites escaped from Egypt in Exodus, chapter 14. At that point, the burden on their shoulders and the yoke on their necks will be lifted.

You defeated our enemies in the past (Ps 83:9-83:12)

“Do to them as you did to Midian.

Do as you did to Sisera.

Do as you did to Jabin at the river Kishon.

You destroyed them at En-dor.

They became dung for the ground.

Make their nobles like Oreb and Zeeb.

Make all their princes like Zebah and Zalmunna.

They said.

‘Let us take the pastures of God

For our own possession.’”

The psalmist recounted the times in the past when Yahweh had helped them against enemies. He was calling on Yahweh to act now as he had in the past. Gideon defeated the Midianites in Judges, chapter 7. Deborah defeated General Sisera and King Jabin in Judges, chapter 4. En-dor was a Canaanite city. Gideon defeated Oreb and Zeeb, 2 captains of the Midianites, in Judges, chapter 7. Gideon also defeated Zebah and Zalmunna in Judges, chapter 8. Obviously this psalmist had the Book of Judges or something similar at his disposal, as he recounted the deeds of Deborah and Gideon before the time of King Saul and King David.