Exodus 17:13 New International Version (NIV)

So Joshua overcame the Amalekite army with the sword.

Exodus 17

Exodus 17:11-16