Washington, D.C. (ABC News)
The president was playing defense when Rey Decerega, an opposing player, turned into him to take a shot and his elbow hit Obama in the mouth.
"I learned today the president is both a tough competitor and a good sport," Decerega, who works for the Congressional Hispanic Caucus Institute, said in a written statement. "I enjoyed playing basketball with him this morning. I'm sure he'll be back out on the court again soon."
The president was given a local anesthetic for the procedure.
The White House Medical Unit used a smaller filament that requires more stitches but makes them tighter, resulting in a smaller scar, the administration said.
While leaving Fort McNair, cameras captured the president holding a gauzelike material to his lip.
Jonathan Smith, a sports fitness instructor at Fort McNair, told ABC News he noticed a few "trickles of blood" on the president's lip as he and his entourage were leaving.
They had been playing for about 90 minutes when the incident occurred, Smith said.
The injury occurred in the last of the five games Obama was playing with his friends, which included his nephew, Avery Robinson, personal aide Reggie Love and Secretary of Education Arne Duncan.
Neither the first lady nor the Obama daughters, Malia and Sasha, were there.
Later, at the Christmas tree arrival ceremony, Obama could be seen looking through a window at the front of the White House, holding what looked like an icepack to his lip.
Obama's love of basketball is well documented and he's a regular on the court with his friends. The president, who played basketball for his high school team in Hawaii, has on a few occasions stepped away from the White House to attend college and professional games.
As a presidential candidate, Obama told HBO's Bryant Gumbel that people can take away a lot about a person based on their game.
"I do think you can tell something about people from how they play basketball,'" said Obama. "For example, people who keep on shooting even though they have no jump shot,'' he said with a laugh. "You can tell that there is a certain self-delusional aspect to their game that says something about who they are.''