1 Chronicles 22:8-10
22:8 But the Lord said to me: ‘You have spilled a great deal of blood and fought many battles. You must not build a temple to honor me, for you have spilled a great deal of blood on the ground before me.
22:9 Look, you will have a son, who will be a peaceful man. I will give him rest from all his enemies on every side. Indeed, Solomon will be his name; I will give Israel peace and quiet during his reign.
22:10 He will build a temple to honor me; he will become my son, and I will become his father. I will grant to his dynasty permanent rule over Israel.’