Barack Obama actually said...
The only way that Israel is going to be truly secure and the Palestinians are going to be able to meet the aspirations of their people is if there are two states living side by side in peace and security.
Context
The President's News Conference With President Park Geun-hye of South Korea
10/15/2015