Here is an interesting part of a psalm
"Some trust in chariots and some in horses,
but we trust in the name of the Lord our God." Psalm 20:7
It seems like someone had learned their lesson! However, Isaiah also warned Israel against trusting in horses and chariots, and they did not listen. For they were carried away forever by the Assyrians in 722 BC. I believe that the Israelites were looking to Egypt for help instead of God.
"Woe to those who go down to Egypt for help
and rely on horses,who trust in chariots because they are many
and in horsemen because they are very strong,
but do not look to the Holy One of Israel
or consult the Lord!
2 And yet he is wise and brings disaster;
he does not call back his words,
but will arise against the house of the evildoers
and against the helpers of those who work iniquity.
3 The Egyptians are man, and not God,
and their horses are flesh, and not spirit.
When the Lord stretches out his hand,
the helper will stumble, and he who is helped will fall,
and they will all perish together." Isa. 31:1-3