President Barack Obama is weighing in on the Trayvon Martin case, calling his death "a tragedy."

The president said the nation needs to do some "soul-searching" over the teen’s death.

"I can only imagine what these parents are going through, and when I think about this boy, I think about my own kids, and I think every parent in America should be able to understand why we investigate every aspect of this -- federal state and local -- and figure out how this tragedy happened," Obama said.

The president was asked about Martin after a Rose Garden ceremony.

The family of Trayvon Martin issued this statement in response:

"It is humbling that President Obama took time from his busy schedule to talk about Trayvon and offer the support of the Department of Justice and other federal organizations. 

The President's personal comments touched us deeply and made us wonder: If his son looked liked Trayvon and wore a hoodie, would he be suspicious too?    

We'd like to thank the President and the millions of people from around the world who have shown their support for Trayvon by participating in hoodie marches, rallies or through social media.  We are all working together to not only get justice for Trayvon, but also to ensure that this kind of senseless tragedy doesn't happen to another child."