Barack Obama actually said...
We must change our mindset about war itself: to prevent conflict through diplomacy and strive to end conflicts after they've begun.
Context
Remarks With Prime Minister Shinzo Abe of Japan at Hiroshima Peace Memorial Park in Hiroshima
05/26/2016