Leviticus 27:9

9 If a solemn promise involves livestock that can be offered to the LORD, any such animal given to the LORD will be considered holy.