What does Leviticus 25:40 say in the KJV?

But as an hired servant, and as a sojourner, he shall be with thee, and shall serve thee unto the year of jubile:

A regulation concerning the treatment of an Israelite who has sold himself into servitude.

King James Version (public domain)

Traditionally attributed to Moses · c. 13th century BC · The Pentateuch — Genesis, Exodus, Leviticus, Numbers, and Deuteronomy — is traditionally attributed to him

Context

38I am the LORD your God, which brought you forth out of the land of Egypt, to give you the land of Canaan, and to be your God.

39And if thy brother that dwelleth by thee be waxen poor, and be sold unto thee; thou shalt not compel him to serve as a bondservant:

40But as an hired servant, and as a sojourner, he shall be with thee, and shall serve thee unto the year of jubile:

41And then shall he depart from thee, both he and his children with him, and shall return unto his own family, and unto the possession of his fathers shall he return.

42For they are my servants, which I brought forth out of the land of Egypt: they shall not be sold as bondmen.