Leviticus 27:26-27 - Redemption Of The Firstborn
26 Only the firstling which is born a firstling to Yahweh, among beasts, no man shall hallow it, - whether ox or sheep, unto Yahweh, it belongeth. 27 But, if it be among the beasts that are unclean, then shall he ransom it by thine estimate, and add the fifth part of it thereunto, - but, if it is not redeemed, then shall it be sold by thine estimate.
40 And Yahweh said unto Moses: Number thou every firstborn male belonging to the sons of Israel, from one month old and upwards, - and reckon up the number of their names; 41 then shalt thou take the Levites for me, me Yahweh, instead of every firstborn among the sons of Ishmael, - also the cattle of the Levites, instead of every firstling among the cattle of the sons of Israel. 42 So then Moses numbered, as Yahweh commanded him, - every firstborn among the sons of Israel. 43 And it was so - that all the firstborn of the males in the counting of names from one month old and upwards of such as were numbered of them, - were two-and-twenty thousand, two hundred and seventy-three.
44 Then spake Yahweh unto Moses, saying: - 45 Take the Levites, instead of all the firstborn among the sons of Israel, and the cattle of the Levites, instead of their cattle, - so shall the Levites belong unto me, me Yahweh;
46 and as the ransom of the two hundred and seventy-three, - who are mere than the Levites, of the firstborn of the sons of Israel, 47 thou shalt take five shekels apiece by the poll, - by the shekel of the sanctuary, shalt thou take it, twenty gerahs to the shekel; 48 and shalt give the silver to Aaron and to his sons, - as the ransom of them that are in excess over them.
49 So Moses took the redemption silver from them who were in excess over them who were redeemed by the Levites: 50 from the firstborn of the sons of Israel, took he the silver, - a thousand three hundred and sixty-five shekels, by the shekel of the sanctuary, 51 And Moses gave the redemption silver to Aaron and to his sons at the bidding of Yahweh, - As Yahweh commanded Moses.