CONTEXT: David here in this Chapter is relating to Nathan the desire to build the temple. Matthew Henry breaks is down as follows: David’s care for the ark. (1-3) God’s covenant with David. (4-17) His prayer and thanksgiving. (18-29)
Our text is part of the later a prayer of David acknowledging the greatness and glory of God. John Gill comments on this:
Wherefore thou art great, O Lord God,…. In his name, nature, persons, and perfections, purposes, promises, and works:
for [there is] none like thee; for his essence and attributes, for his greatness and goodness, for what he is in himself, for what he is to his people, and has done for them:
neither [is there any] God beside thee; there is but one God, the living and true God, the former and maker of all things; all others are but fictitious and factitious gods, see 1 Samuel 2:2;
according to all that we have heard with our ears; concerning what he did in the land of Egypt upon the Egyptians, and in the wilderness, in favour of the Israelites, and in the land of Canaan, by driving out the inhabitants before the people of Israel, and in the times of the judges, in raising them up to deliver his people.
How often do we take time to express the Greatness and Glory of God?