47 “Suppose a foreigner or temporary resident becomes rich while living among you. If any of your fellow Israelites fall into poverty and are forced to sell themselves to such a foreigner or to a member of his family, 48 they still retain the right to be bought back, even after they have been purchased. They may be bought back by a brother, 49 an uncle, or a cousin. In fact, anyone from the extended family may buy them back. They may also redeem themselves if they have prospered. 50 They will negotiate the price of their freedom with the person who bought them. The price will be based on the number of years from the time they were sold until the next Year of Jubilee - whatever it would cost to hire a worker for that period of time. 51 If many years still remain until the jubilee, they will repay the proper proportion of what they received when they sold themselves. 52 If only a few years remain until the Year of Jubilee, they will repay a small amount for their redemption. 53 The foreigner must treat them as workers hired on a yearly basis. You must not allow a foreigner to treat any of your fellow Israelites harshly. 54 If any Israelites have not been bought back by the time the Year of Jubilee arrives, they and their children must be set free at that time. 55 For the people of Israel belong to me. They are my servants, whom I brought out of the land of Egypt. I am the Lord your God.