Barack Obama actually said...
The United States will maintain approximately 8,400 troops in Afghanistan beyond 2016.
Context
Fact Sheet: NATO's Enduring Commitment to Afghanistan
07/08/2016
Fact Sheet: NATO's Enduring Commitment to Afghanistan