Trump made the remark to reporters at the White House before leaving for the presidential retreat at Camp David, Maryland.
The Taliban said on Wednesday it was close to an agreement with US officials on a deal that would see US forces withdraw from Afghanistan in exchange for a Taliban promise that the country would not become a haven for international militants.