and to that surprise this Sunday from president Obama, his visit to Afghanistan and our troops this memorial day weekend. The commander in chief received with cheers at that hangar at the air base in... See More
and to that surprise this Sunday from president Obama, his visit to Afghanistan and our troops this memorial day weekend. The commander in chief received with cheers at that hangar at the air base in bag ram. And while there, he talked about how grateful Americans are back home for their service and about what should happen when those vets come home. ABC's Muhammad Lila reports from kabul tonight. Reporter: Landing under the cover of darkness, a secret trip and a chance to say an early memorial day thank you. For many of you, this will be your last tour in Afghanistan. Reporter: Even offering this reminder of a grateful and generous nation. You see it in the kids across America, who send you all the care packages and the girl scout cookies. Those were pretty popular, huh? You like those cookies, huh? All right. I'll bet you'll get some more now. Reporter: It's Obama's first trip here in nearly two years. So secret, it was announced only after he landed. This room packed with soldiers, erupting in applause with this. And I keep on saying to every company back home, if you want somebody who knows how to get the job done, hire a vet. Hire a vet. Hire a vet. Reporter: And the president, known to take a selfie from time to time, ending in a way that only he could. Now I'm going to shake every single hand in here. Although I may not be able to take a selfie with everybody. But I'll shake every hand. Reporter: Now, we don't know if he did shake every hand in that room, but he did spend nearly an hour in there with the soldiers once the speech was finished.
This transcript has been automatically generated and may not be 100% accurate.