Jacob rose up early in the morning in great fear, and said: The house of the Holy One, blessed be He, is in this place, as it is said, "And he was afraid, and said, How dreadful is this place! this is none other but the house of God" (Gen. 28:17). Hence thou canst learn that every one who prays in Jerusalem is (reckoned) as though he had prayed before the Throne of Glory, for the gate of heaven is there, and it is open to hear the prayers of Israel, as it is said, "And this is the gate of heaven" (ibid.).
Why Jacob Woke in Terror After Dreaming of Heaven
Pirkei DeRabbi Eliezer 35:7