LOS ANGELES, CA - MAY 09:  Lil Nas X performs onstage as Fashion Nova Presents: Party With Cardi at Hollywood Palladium on May 9, 2019 in Los Angeles, California.  (Photo by Jerritt Clark/Getty Images for Fashion Nova)
LOS ANGELES, CA - MAY 09: Lil Nas X performs onstage as Fashion Nova Presents: Party With Cardi at Hollywood Palladium on May 9, 2019 in Los Angeles, California. (Photo by Jerritt Clark/Getty Images for Fashion Nova)
PHOTO: Jerritt Clark/Getty Images for Fashion Nova
Now playing
00:50
Lil Nas X creates buzz with Pride tweet
Donald Trump with Macaulay Culkin in a scene from Home Alone 2.
Donald Trump with Macaulay Culkin in a scene from Home Alone 2.
PHOTO: 20th Century Fox
Now playing
02:09
Actor applauds editing out Trump's 'Home Alone 2' cameo
PHOTO: ABC / "Good Morning America"
Now playing
01:52
Jacob Blake tells GMA 'I didn't want to be the next George Floyd'
Now playing
01:52
Chadwick Boseman's widow gives tearful speech at tribute
hawaii dome fountain
hawaii dome fountain
Now playing
01:07
Surreal 'dome fountain' of lava bubbles up in Hawaii
Lucille Ball Moos pkg 0112
Lucille Ball Moos pkg 0112
PHOTO: Getty Images/Desilu Productions
Now playing
02:29
Internet has a lot to say about Nicole Kidman's Lucille Ball role
Florida Waitress Help Note
Florida Waitress Help Note
PHOTO: WESH
Now playing
02:19
An abused boy is saved by a note from a waitress
PHOTO: Hailey Warrington
Now playing
00:45
Video shows manatee with 'TRUMP' etched into its back
SAVED BY THE BELL -- Season 3 --Pictured: Dustin Diamond as Screech Powers -- Photo by: Chris Haston/NBCU Photo Bank
SAVED BY THE BELL -- Season 3 --Pictured: Dustin Diamond as Screech Powers -- Photo by: Chris Haston/NBCU Photo Bank
PHOTO: NBC/NBCUniversal/NBCUniversal via Getty Images
Now playing
01:21
'Screech,' the adorable geek of 'Saved by the Bell'
Tuscaloosa, Alabama celebrate with massive crowds after the University of Alabama won the national championship in football. Many of those celebrating appeared not be wearing masks.
Tuscaloosa, Alabama celebrate with massive crowds after the University of Alabama won the national championship in football. Many of those celebrating appeared not be wearing masks.
PHOTO: WVTM
Now playing
01:08
Video shows massive crowds after college football win
PHOTO: VOY
Now playing
01:54
New glasses use old tech to shape the future
John Reilly CBS
John Reilly CBS
PHOTO: CBS
Now playing
00:53
'General Hospital' star dies at 86
Ken Jennings hosts Jeopardy! on Monday, January 11, 2021.
Ken Jennings hosts Jeopardy! on Monday, January 11, 2021.
PHOTO: Jeopardy!
Now playing
01:11
The post-Alex Trebek era begins on 'Jeopardy'
PHOTO: Giraffe Conservation Foundation
Now playing
01:28
Half-sized giraffes catch attention of scientists
PHOTO: Instagram/@SarahJessicaParker
Now playing
00:53
'Sex and the City' reboot teaser released
PHOTO: Republic Records
Now playing
00:55
The Weeknd reveals altered face in new music video
(CNN) —  

Lil Nas X is getting praise for how he handled a conversation about homosexuality with comedian Kevin Hart.

On Tuesday’s episode of HBO’s “The Shop: Uninterrupted,” the “Old Town Road” rapper shared the backstory behind his decision to come out publicly over the summer. HBO and CNN are owned by the same parent company, WarnerMedia.

“The Shop” is an unscripted series that highlights the open conversations that happen in a barbershop. The episode featured celebrities Hart, Maverick Carter, Rob Gronkowski, Kevin Love, CJ McCollum, Charlamagne tha God and Paul Rivera.

In the pre-recorded episode, McCollum asks Lil Nas why he chose to open up about his sexuality when he did.

Before the rapper could respond, Hart – who stepped down from hosting the Oscars in 2018 after homophobic tweets he’d made years earlier resurfaced – interjected.

“He said he was gay,” Hart said. “So what?”

That’s when Lil Nas started to speak up.

“It’s not like I was being forced. It’s just like knowing growing up, I’m growing up to hate this s***. I’m not supposed –” he said before Hart interrupted him.

“Hate what? Why? Why are you growing up to hate?” Hart asked.

“Homosexuality, gay people,” Lil Nas said. “Come on now, if you’re really from the hood you know.”

The Georgia native continued to explain how declaring his sexuality at the height of his career made sense to him.

“If for me, the ‘cool dude with the song on top of everything,’ to say this at any other time, I’m doing this for attention in my eyes. But if you’re doing this while you’re at the top, you know it’s for real,” he said. “It’s showing it doesn’t really matter, I guess.”

Lil Nas posted a series of tweets on the last day of Pride month, where he intended to share with his followers that he identifies as gay.

That didn’t stop him from topping the music charts, especially after his viral hit with Billy Ray Cyrus that later became the longest-running No. 1 hit on Billboard’s Hot 100.

Some have accused Hart of gaslighting Lil Nas, a tactic used to make a person question reality. Hart is in the hospital recovering from a car accident this weekend and has not responded to the accusations.

A series of homophobic tweets Hart made between 2009 and 2011 drew public scrutiny late last year. Hart initially declined to apologize, saying he was “not going to continue to go back and tap into the days of old when I’ve moved on and I’m in a completely different space in my life.”

He then announced he would be stepping down from hosting the Oscars, and wrote: “I sincerely apologize to the LGBTQ community for my insensitive words from my past. I’m sorry that I hurt people… I am evolving and want to continue to do so. My goal is to bring people together not tear us apart.”

Earlier this year, Hart shared his support for Jussie Smollett after the “Empire” star alleged a hate crime had been committed against him. Police in February claimed Smollett staged it.

At the time of the alleged attack, Hart wrote on social media, “Why are we going backwards….this is disgusting,” and faced some skepticism because of his past remarks.

“I stand with a man in his time of hurt and need by giving him heart felt support and u take the time to harp on my 10yr past that I have apologized about and moved on from by being a better person,” Hart tweeted. “Do you want change? If so I am an example of what u want people to do…CHANGE!”