Nebuchadnezzar attacked Tyre (Ezekiel 26–28). His army worked very hard but gained little wealth from the city.
The Lord said that workers deserve their wages. So he would give Egypt to Babylon as payment for their work. Egypt would become their reward.