*Minor differences ignored. Grouped by changes, with first version listed as example.
Therein for thy name - "For the name of thy Word." - Targum.
And they dwelt therein,.... From ages past, hitherto, since it was first given them, and they were put into the possession of it:
and have built thee a sanctuary therein for thy name; a temple for his worship, honour, and glory, and for him to dwell in; and is a reason why it might be hoped he would protect them, especially when they prayed to him:
saying; and he promised to hear and help them, as follows.
In this land they dwelt, and built Thee therein a sanctuary for Thy name; cf. 2-Chronicles 6:5, 2-Chronicles 6:8. לאמר, saying, i.e., at the consecration of this house, having expressed the confident hope contained in the following words (2-Chronicles 20:9). In this verse, the cases enumerated in Solomon's dedicatory prayer, in which supplication is made that God would hear in the temple, are briefly summed up. By referring to that prayer, Jehoshaphat presupposes that Jahve had promised that He would answer prayer offered there, since He had filled the temple with His glory; see 2-Chronicles 7:1-3. The name שׁפות, which occurs only here, between דּבר and חרב, denotes in this connection a punitive judgment.
*More commentary available at chapter level.