for David: i.e. in the person of Solomon his son. Figure of speech Synecdoche (of Part). Compare 1 Kings 10:9 and 2 Chronicles 7:10.
Related Commentaries of 1 Kings 8:66
1 Kings 8:66
66 On the eighth day he sent the people away: and they blessedn the king, and went unto their tents joyful and glad of heart for all the goodness that the LORD had done for David his servant, and for Israel his people.