Will Smith surprises the students at the center of a heartwarming anti-bullying viral video on The Ellen Degeneres Show

They were filmed donating clothing and shoes to a high school classmate whose family couldn't afford new outfits.

Kristopher Graham, 14, Antwain Garrett, 16, and Michael Todd, 14, were all invited on The Ellen DeGeneres show for a heartwarming segment set to air on Friday about their viral video.

But the trio got an unexpected surprise when Will Smith, 50, dropped into the taping to tell them just how much the video meant to him and his wife Jada Pinkett Smith, 48.

Surprise! Will Smith, 50, surprised Michael Todd, 14, and his classmates Kristopher Graham, 14, and Anwain Garrett, 16, on The Ellen DeGeneres Show for a segment airing Friday

Surprise! Will Smith, 50, surprised Michael Todd, 14, and his classmates Kristopher Graham, 14, and Anwain Garrett, 16, on The Ellen DeGeneres Show for a segment airing Friday

Ellen opened the segment with all three boys. Kristopher explained how he had initially joined in as other bullies poked fun at his classmate Michael, though he later had a stab of conscience.

'Once I went home and thought about it, I wanted to apologize to Michael, but I wanted to give him something in apology.' 

Kristopher and his friend Antwain from the football team brought in a box full of clothing and shoes for their schoolmate, who often had to rewear the same outfits because he quickly outgrew his clothing.

'I was surprised, shocked, happy,' he said. 'It was the best day of my life, because I was bullied my entire life.'

Antwain and Kristopher didn't intend to film their kind deed, but a classmate caught it all on video, and the inspiring clip quickly went viral.

Ellen mentioned how celebrities were inspired by their video — just before announcing Will Smith's surprise entrance.

Good deed: Kristopher and Antwain were filmed giving Michael clothing and shoes after he was bullied for wearing the same clothes to school every day. The video quickly went viral and attracted celebrity attention

Good deed: Kristopher and Antwain were filmed giving Michael clothing and shoes after he was bullied for wearing the same clothes to school every day. The video quickly went viral and attracted celebrity attention

Change of heart: Kristopher joined in the bullying, but regretted it afterward. 'Once I went home and thought about it, I wanted to apologize to Michael, but I wanted to give him something in apology'

Change of heart: Kristopher joined in the bullying, but regretted it afterward. 'Once I went home and thought about it, I wanted to apologize to Michael, but I wanted to give him something in apology'

Shocked: Ellen mentioned how celebrities were inspired by their video ¿ just before announcing Will Smith's surprise entrance

Shocked: Ellen mentioned how celebrities were inspired by their video — just before announcing Will Smith's surprise entrance

After greeting the stunned boys, the Gemini Man star revealed his interested in their good deed.

'So I saw the video, and me and Jada were sitting around and were like, "That is fantastic. There is no way that I'm letting this pass without making contact with these kids."'

'What you did felt small to you, but I promise you that is exactly how human beings are supposed to interact with each other,' he said. 'Somebody is having a hard time and you help them. It's that simple.'

'Doesn't matter if you know them,' chimed in Ellen.

Shining the spotlight: After greeting the stunned boys, the Gemini Man star revealed his interested in their good deed

Shining the spotlight: After greeting the stunned boys, the Gemini Man star revealed his interested in their good deed

Helping hand: 'What you did felt small to you, but I promise you that is exactly how human beings are supposed to interact with each other,' he said. 'Somebody is having a hard time and you help them. It's that simple'

Helping hand: 'What you did felt small to you, but I promise you that is exactly how human beings are supposed to interact with each other,' he said. 'Somebody is having a hard time and you help them. It's that simple'

Kindness of strangers: 'Doesn't matter if you know them,' chimed in Ellen

Kindness of strangers: 'Doesn't matter if you know them,' chimed in Ellen

Will also singled out Kristopher for 'self-correcting' and apologizing after making fun of Michael.

But he wasn't just there to offer words of encouragement.

The Men In Black star had some helpers bring out gym bags full of his own merchandise from New Balance, with a pair of sneakers hanging out the top.

'This is some special state-of-the-art stuff. It's not even out yet. I'm doing a secret drop — well, it's not secret anymore, I just announced it.

'This is an act of kindness that I don't want to soon be forgotten,' he said as the boys admired their new booty. 

New digs: The Men In Black star had some helpers bring out gym bags full of his own merchandise from New Balance, with a pair of sneakers hanging out the top

New digs: The Men In Black star had some helpers bring out gym bags full of his own merchandise from New Balance, with a pair of sneakers hanging out the top

The generosity didn't stop there. Will announced that he and New Balance would be donating gear to every kid in their high school 

Ellen joined in the generosity and left the three boys speechless by announcing that they would each be getting checks for $10,000, courtesy of the photo company Shutterfly.

The high schoolers held their massive cardboard checks aloft as the crowd roared.

Special gift: Ellen upped the ante by joining with Shutterfly to donate $10,000 to each of the boys

Special gift: Ellen upped the ante by joining with Shutterfly to donate $10,000 to each of the boys

Will Smith surprises students in viral anti-bullying video on The Ellen Degeneres Show

The comments below have not been moderated.

The views expressed in the contents above are those of our users and do not necessarily reflect the views of MailOnline.

We are no longer accepting comments on this article.