Barack Obama actually said...
There is no military solution inside of Iraq, certainly not one that is led by the United States.
Context
Remarks on the Situation in Iraq and an Exchange With Reporters
06/18/2014
Remarks on the Situation in Iraq and an Exchange With Reporters