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 (2 Samuel 8:7-12; 2 Samuel 18:7-11).