Numbers 8:17

17 For all the firstborn of the sons of Israel are mine, both of man and of animals; from the day that I smote every firstborn in the land of Egypt I sanctified them for myself.