President Barack Obama gave the eulogy for one of the Charleston victims on Friday, and ended it by leading the crowd in singing "Amazing Grace."

"An open heart. That's what I felt this week," Obama told the crowd at the funeral for Sen. and Rev. Clementa Pinckney, one of the nine people who was shot at Emanuel AME Church in Charleston, S.C., last week. "That, more than any particular policy or analysis, is what's called upon right now, I think."

"As a nation out of this terrible tragedy, God has visited grace upon us for he has allowed us to see where we've been blind," Obama said in his eulogy. "He's given us the chance where we've been lost to find our best selves."

President Obama used the n-word to make a strong point about racism

When he was finished speaking, he briefly paused, then launched into "Amazing Grace." A few seconds later, the entire crowd joined in.

The White House tweeted a video of him singing: