The way the Temple operated was described in principle by God to Moses in the first five books of the Jewish Bible, the Torah. From halfway through Exodus on until the end of Deuteronomy ...
Therefore the Lord himself will give you a sign: The virgin will be with child and will give birth to a son, and will call him Immanuel. All right then, the Lord himself will choose the sign. Look!