Numbers 3:46

And for those that are to be redeemed of the two hundred and threescore and thirteen of the firstborn of the children of Israel, which are more than the Levites;

Cross-reference

Numbers 3:39-43 gives the census of Levites (22,000) and firstborn males (22,273), explaining the excess of 273 that requires redemption in 3:46.

Numbers 3:47 then specifies the redemption price of five shekels per person for the 273 firstborn mentioned in 3:46.

Numbers 3:50 records the total redemption money collected (1,365 shekels) for the 273 firstborn at five shekels each.

In Numbers 18:15, the general law that firstborn males must be redeemed is given, which Numbers 3:46 applies to the 273 excess firstborn.

Exodus 13:13 already commanded the redemption of firstborn males with a lamb, the same principle behind the ransom for the 273 excess firstborn here.