It is not certain when or by whom this psalm was written. Some have suggested that it may have been sung at the dedication of the temple of God. Its sentiments could very well have been appropriate at that time. The psalmist expressed thankfulness for God’s care during sickness and oppression. As the poem points out, recovery and victory were because of God. Likewise, construction of the temple had been delayed many years due to various reasons, but it had finally been completed, dedicated and occupied by the presence of God. Victory at last!