Barack Obama actually said...
The United States seeks an enduring partnership with the Afghan people, not with any particular Afghan leader.
Context
Statement on the Start of Afghanistan's Election Season
06/15/2009
Statement on the Start of Afghanistan's Election Season