1) David prayed in humility, thanking God for the blessings and success God had given him so far in his life and acknowledging that God deserves all the credit.
2) David asked God to fulfill His promises to establish David's house forever, knowing that God's will is always good.
3) David wanted all his blessings to come solely from God and trusted that God's words are true.