Barack Obama actually said...
Ideologies are not defeated with guns; they're defeated by better ideas – a more attractive and more compelling vision.
Context
Fact Sheet: Leaders' Summit to Counter ISIL and Violent Extremism
09/28/2015