Exodus 20:24

20:24 ‘You must make for me an altar made of earth, and you will sacrifice on it your burnt offerings and your peace offerings, your sheep and your cattle. In every place where I cause my name to be honored I will come to you and I will bless you.

Deuteronomy 12:5

12:5 But you must seek only the place he chooses from all your tribes to establish his name as his place of residence, and you must go there.

Deuteronomy 12:21

12:21 If the place he chooses to locate his name is too far for you, you may slaughter any of your herd and flock he has given you just as I have stipulated; you may eat them in your villages just as you wish.