Numbers 3:40-51

40 The LORD then said to Moses, "Take a census of all the first-born males of the Israelites a month old or more, and compute their total number.

41 Then assign the Levites to me, the LORD, in place of all the first-born of the Israelites, as well as their cattle in place of all the first-born among the cattle of the Israelites."

42 So Moses took a census of all the first-born of the Israelites, as the LORD had commanded him.

43 When all the first-born males of a month or more were registered, they numbered twenty-two thousand two hundred and seventy-three.

44 The LORD said to Moses:

45 "Take the Levites in place of all the first-born of the Israelites, and the Levites' cattle in place of their cattle, that the Levites may belong to me. I am the LORD.

46 As ransom for the two hundred and seventy-three first-born of the Israelites who outnumber the Levites,

47 you shall take five shekels for each individual, according to the standard of the sanctuary shekel, twenty gerahs to the shekel.

48 Give this silver to Aaron and his sons as ransom for the extra number."

49 So Moses took the silver as ransom from those who were left when the rest had been redeemed by the Levites.

50 From the first-born of the Israelites he received in silver one thousand three hundred and sixty-five shekels according to the sanctuary standard.

51 He then gave this ransom silver to Aaron and his sons, as the LORD had commanded him.