For they are wholly given unto me from among the children of Israel; instead of such as open every womb, even instead of the firstborn of all the children of Israel, have I taken them unto me.
The Levites were wholly given to God from among the children of Israel to carry on the work of the sanctuary in place of the firstborn. The firstborn of Israel belonged to God because they had been preserved when the firstborn of Egypt perished. Even so, without the atoning sacrifice they too had been exposed to death, and for that deliverance they were His by special right. The Levites were therefore taken as their substitutes in sacred service, while every firstborn son still had to be redeemed by a stated payment.
Numbers 8 gives the instructions for the purification and dedication of the Levites and for the appointment of the priests and Levites to their service, and this verse belongs to that setting as the statement that the Levites were given to God in place of Israel's firstborn. It declares that the Levites are wholly given to the Lord from among the children of Israel, taken by Him instead of all who open the womb, even instead of the firstborn of all Israel, whom He had claimed as His own. The same exchange is stated as the setting apart of the whole tribe in place of the firstborn. The firstborn had been consecrated to God because the Israelite firstborn were spared when the Egyptian firstborn were struck down. Apart from this exchange, the firstborn sons would have served as priests and religious teachers. Those consecrated firstborn were redeemed by payment of five shekels. This transfer gave Levi a share in the birthright after Reuben forfeited his, so that the birthright did not pass intact to one son but was divided among Judah, Joseph, and Levi.