He made that comment at some speech at the UN. I think it was not too long after Benghazi, naturally about the fake movie.
Following is a text of President Obamas speech to the United Nations General Assembly on Tuesday, as released by the White House: