By Amie Parnes - 05/01/12 09:07 PM EDT
The president said that neither Americans nor the Afghan people asked for this war, "yet for a decade we've stood together."
"I'm here to affirm the bond between our two countries and to thank Americans and Afghans who have sacrificed so much over these last 10 years," he said.
"Today with the signing of the strategic partnership agreement we look forward to a future of peace," Obama continued. "Today we're agreeing to be long-term partners."
Still Obama acknowledged, "There will be difficult days ahead."
Obama made a surprise visit to Afghanistan and will give an address to the nation from Bagram Airfield Tuesday night.