"Now the Valley of Siddim was full of tar pits, and when the kings of Sodom and Gomorrah fled, some of the men fell into them and the rest fled to the hills. The four kings seized all the goods of Sodom and Gomorrah and all their food; then they went away. They also carried off Abram's nephew Lot and his possessions, since he was living in Sodom." NIV translation
We see that God used four to defeat five and accomplish His will. We also see that Lot was captured simply because he was with them in Sodom. We are reminded from this fact that it matters where we hang out and what we do. If we are in the wrong place at the wrong time, bad things can happen.
"One who had escaped came and reported this to Abram the Hebrew. Now Abram was living near the great trees of Mamre the Amorite, a brother of Eshcol and Aner, all of whom were allied with Abram. When Abram heard that his relative had been taken captive, he called out the 318 trained men born in his household and went in pursuit as far as Dan." NIV translation
There was one man that escaped the battle and he reported the fact that Lot had been taken captive.
The Amorites were descendants of Canaan who was a child of Ham and they were a cursed people (see Genesis 9).
Now, we see that Abram only had 318 men and the families of his allies but, even though they would have known that they faced an army with superior numbers, they pursued them. Once again, we see that God does not respect numbers and we also see that many times He will use the lowly (cursed) people to carry out His will.
"During the night Abram divided his men to attack them and he routed them, pursuing them as far as Hobah, north of Damascus. He recovered all the good and brought back his relative Lot and his possessions, together with the women and the other people." NIV translation
Once again, God did not respect numbers but used this small group to defeat four armies. Abram was able to recover all that had been taken.
"After Abram returned from defeating Kedorlaomer and the kings allied with him, the king of Sodom came out to meet him in the Valley of Shaveh (that is, the King's Valley)." NIV translation
The defeated king of Sodom met Abram on his return from the battle. In this, we see how God humbles the proud.