Read here about David's praise during a time of disappointment and note also how he continued to work toward his dream even though he knew ...
1 Chronicles 29:10-15 - David’s Prayer
10 David praised the LORD in the presence of the whole assembly, saying,
“Praise be to you, LORD, the God of our father Israel, from everlasting to everlasting. 11 Yours, LORD, is the greatness and the power and the glory and the majesty and the splendor, for everything in heaven and earth is yours. Yours, LORD, is the kingdom; you are exalted as head over all. 12 Wealth and honor come from you; you are the ruler of all things. In your hands are strength and power to exalt and give strength to all. 13 Now, our God, we give you thanks, and praise your glorious name.
14 But who am I, and who are my people, that we should be able to give as generously as this? Everything comes from you, and we have given you only what comes from your hand. 15 We are foreigners and strangers in your sight, as were all our ancestors. Our days on earth are like a shadow, without hope."
"King David yearns to build a temple where God's presence can dwell with His people. But God forbids him to do so (1 Kings 8:17-19). Someday his son Solomon will fulfill the dream instead.
Despite his disappointment, David develops the plans and gathers the people to amass many of the rich materials that will be needed. (1 Chronicles 28). Then he leads the people in an eloquent prayer of worship and praise.
David, a man after God's own heart (1 Samuel 13:14), understands the importance of praising God despite his own disappointment. We praise God in prayer despite the difficulties and disappointments life throws our way, simply because he is worthy of our praise (Psalm 145:3).