In the second book of Samuel chapter 7, God sends a prophet to give good words to King David and at the same time affirm his reign, establishing that his son would build the Lord’s house. David was very glad to hear these words, for God had been good and merciful to him.
After the words that God gave David, he thanked God in the following way:
22 Wherefore thou art great, O Lord God: for there is none like thee, neither is there any God beside thee, according to all that we have heard with our ears.
23 And what one nation in the earth is like thy people, even like Israel, whom God went to redeem for a people to himself, and to make him a name, and to do for you great things and terrible, for thy land, before thy people, which thou redeemedst to thee from Egypt, from the nations and their gods?
24 For thou hast confirmed to thyself thy people Israel to be a people unto thee for ever: and thou, Lord, art become their God.
2 Samuel 7:22-24 (KJV)