Former president Barack Obama still knows how to find the right words after a national tragedy.

With more than 2.4 million likes and counting, Obama's tweet Saturday quoting Nelson Mandela in the wake of white supremacist violence in Charlottesville, Va., is the second-most liked tweet since Twitter launched.

Ariana Grande's tweet following a deadly bombing at her concert in England holds the top spot with 2.7 million likes.

One woman was killed and 19 people were injured when a man, who had been a part of a white supremacist rally in downtown Charlottesville, rammed his car into a crowd of people.

"No one is born hating another person because of the color of his skin or his background or his religion..." Obama's tweet read.

The quote is from former South African president Nelson Mandela's autobiography, Long Walk to Freedom.

I always knew that deep down in every human heart, there is mercy and generosity. No one is born hating another person because of the color of his skin, or his background, or his religion. People must learn to hate, and if they can learn to hate, they can be taught to love, for love comes more naturally to the human heart than its opposite.

Obama shared more of the quote in two more tweets, which got 1 million and 900,000 likes respectively.

By contrast, President Trump's first tweet in response to the tragic scene in Charlottesville got 187,000 likes.

Of course, not everyone liked Obama's sentiment.

Some users called on the former president to condemn the violence "from either side."

Others blamed the Charlottesville violence on Obama.

This is all on you, Barack.

Happy now?

— HR MCMASTERS (@mcmasters_hr) August 13, 2017

PHOTOS: Memorial for victims of Charlottesville attack

The Associated Press contributed to this report.