Just throwing this out there: is there a significant connection between Israel not being able to build the Temple until after David died due to the wars and blood spilled by David at God’s command (1st Chronicles 28:3) and the temple of the second covenant not being consecrated until Christ’s death (which meant the Holy Spirit could not come until that time) Hebrews 9:17-23 and John 16:7?
Note that Stephen specifically refers to David asking to build a house but Solomon doing it in his long defense before the Sanhedrin (Acts 7:46-47)