It is analogous to a king who had a son whom he placed in charge of all his property. The son said to his father: ‘If you do not give me your throne, how will everyone know that you are fond of me? Only if you give to me the place of your throne will everyone show appreciation for me.’ Thus God gave Abraham the world, as it is stated: “And the Lord said: Will I conceal [something] from Abraham” (Genesis 18:17).
Once He gave him everything, he said to Him: If You do not give me the Temple, five hundred cubits by five hundred cubits, You have not given me anything. The Holy One blessed be He gave him everything that he asked, as it is stated: “And I have given you one portion more than your brothers” (Genesis 48:22). When Abraham heard this, what did he say? “God spoke in His holiness, I exulted” (Psalms 60:8).