Barack Obama actually said...
The only way ultimately that Pakistan is secure is if Afghanistan is secure.
Context
The President's News Conference With President Hamid Karzai of Afghanistan
05/11/2010
The President's News Conference With President Hamid Karzai of Afghanistan