You shall not seek their peace or their prosperity all your days forever.
#deuteronomy 23:6

It is impossible to live in peace with some people, and sometimes being a peace-maker requires going to war. There is a time to love and a time to hate, a time for war and a time for peace. Solomon learned this from God's Law before he proved it in his own life.