1 Chronicles 22:8milchamah
But the Lord spoke his word to me, 'David, you have killed many people. You have fought many wars. You cannot build a temple for worship to me, because you have killed many people.
David's many wars kept him from building God's temple.
2 Chronicles 16:9milchamah
The Lord searches all the earth for people who have given themselves completely to him. He wants to make them strong. Asa, you did a foolish thing, so from now on you will have wars."
Wars come as consequence of Asa's foolish lack of trust.