Obama and his wife Michelle Obama arrived late Wednesday morning at the sprawling military installation where flags were lowered to half-staff in honor of the victims in the shooting.
"For you, for your families, no words are equal to your loss. We are here on behalf of the American people to honor your loved ones and offer whatever comfort we can," said the president in a somber tone to the Fort Hood community.
Reminding the audience of another deadly rampage, Obama said: " This tragedy tears a wound still raw from four years ago."
This is Obama's second visit to the military base to mourn a tragedy. On Nov 5, 2009, Army psychiatrist Nidal Malik Hasan opened fire at a soldier readiness center in Fort Hood. The shooting left 13 people dead and more than 30 others wounded. It was the deadliest attack on a domestic military installation in US history.
Last Wednesday, Ivan Lopez, an Army truck driver, opened fire in three separate buildings at the post, killing three people and wounding 16 others before committing suicide. Authorities said the soldier, who was being treated for mental health issues, had verbal altercations with his seniors regarding a request for leave just before the shooting.