MIDRASH TEHILLIM
1.....(24.10)
Lift up your hweads, O you gates...
You find that after Solomon build the Holy Temple, he sought to bring the Ark into the Holy of Holies, but the gates held fast one to other. Solomon cried out twenty four times, but he was given no responce. But when he said: "O Lord God, do not turn back the face of Your anointed one; remember the kind deeds of David Your servant." (Divrei Hayamim II - II Chronicles 6:42), at that moment the gates lifted up their heads, and the Ark entered, and a fire came down from heaven.
Why was Solomon put to such trouble?
Because he was arogant, having said: "I have surely built You a house to dwell in;" (Melachim I - I Kings 8:13).