Physical distance and the pain of exile do not sever the connection between God and His people. Even when scattered across foreign lands, a direct path remains open for sincere repentance and prayer. When the people achieve complete repentance in a distant country, their prayers are directed both spiritually and geographically toward the ultimate center of holiness [ביאור שטיינזלץ].
There is a specific, intentional route that these prayers travel. From the lands of their captors, the people must focus their hearts so that their prayers journey first through the Land of Israel, then onward to the chosen city, and finally into the sanctuary of the Temple itself [מצודת דוד].
King Solomon highlights that this sanctuary was built specifically to magnify and glorify the name of God. Because the Temple serves this grand purpose, God will accept the prayers directed toward it. In turn, the people will continually pray to Him, always turning their faces toward this holy house, no matter where they find themselves in the world [רש״י].