David commanded to gather together the foreigners who were in the land of Israel; and he set masons to hew worked stones to build the house of God.
Furthermore, David was grossly mistaken about that temple's being the "house" that God promised to build for David; and he was also totally in error in his conception that Solomon was the mighty one of his posterity whose throne God would establish forever.