"Then Melchizedek king of Salem brought out bread and wine. He was priest of God Most High, and he blessed Abram, saying, 'Blessed be Abram by God Most High, Creator of heaven and earth. And blessed be God Most High, who delivered your enemies into your hand.' Then Abram gave him a tenth of everything." NIV translation
Abram was also met by Melchizedek and it is odd that we do not learn much about him other than he was a priest of God from Salem. There are those who say this is speaking of Jerusalem but it is not as God had not established Jerusalem as His holy city. It is also odd that he was called a priest but the Levitical priesthood had not been established yet. In this we see that Melchizedek was more than a man and in fact was a picture of the coming priesthood of Jesus Christ. His name actually means "king of righteousness" and Salem means "peace" and so we see that he was a picture of the coming righteousness and peace that we would be blessed with through Jesus Christ. We also see that Abram gave him a tithe (10%) of what he had captured. This was before tithing was prescribed by the Law and so we see that the tithe was meant to come from the heart and not from religious legislation. We also see a picture of the first communion (Lord's Supper) as they broke bread and shared the wine in worship of God.
"The king of Sodom said to Abram, 'Give me the people and keep the goods for yourself.'" NIV translation
The king of Sodom came for the people in hopes that he could still be a king. He was willing to give Abram everything else but he had to have the people.
It is much the same with Satan as he doesn't care about the things of this world because he knows that in the end he will be judged. His goal is to get people to follow him all the way to hell.
"But Abram said to the king of Sodom, 'I have raised my hand to the Lord, God Most High, Creator of heaven and earth, and have taken an oath that I will accept nothing belonging to you, not even a thread or the thong of a sandal, so that you will never be able to say, "I made Abram rich." I will accept nothing but what my men have eaten and the share that belongs to the men who went with me - to Aner, Eschol and Mamre. Let them have their share.'" NIV translation
We have all heard the saying "to the victor goes the spoils" and that was the normal practice but Abram does not accept the things that were recovered. We see from his oath to God that he trusts in the Creator to provide what he needs. The same type of thing happens even today in the church. When some people see the favor of God upon our lives, they want to join in and claim our victory for themselves. We must do like Abram and trust in our Creator and not fall into the trap of relying on someone else to provide for our needs.