in my trouble: i.e. in the unsettled years of his warlike reign; and of the trouble brought on by his sin with Bath-sheba, and by Absalom's rebellion. The Septuagint reads "according to my poverty".
prepared for the house. The Tabernacle was built with the spoils of Egypt: the Temple from spoils of David's wars (2Sa_8:7-12. 2Sa_18:7-11).