Michelle Obama surprises a dance class at her former high school and it's amazing: ABC News Exclusive

Obama visited Chicago with Robin Roberts ahead of the release of "Becoming."

Obama, 54, visited Whitney Young Magnet High School during a visit to her hometown of Chicago for an exclusive interview with with "Good Morning America" anchor Robin Roberts in early November.

Their visit, which aired Sunday in the ABC News special “Becoming Michelle: A First Lady’s Journey with Robin Roberts,” was supposed to be a quick drop-by visit but turned into much more.

As a photo of a young Obama, then named Michelle Robinson, hung on a wall nearby, the former first lady shared lessons with the girls about how she found her voice in high school.

(MORE: Michelle Obama opens up about her miscarriage, going through IVF and Donald Trump in ABC News prime-time special for new memoir 'Becoming')

"I want you all to learn how to be advocates for yourself in this life," Obama said. "Because people will try to take your voice and shape it in a way that has nothing to do with who you really are."

Obama also spoke candidly with the students about some of the obstacles she faced while serving as the first lady. Obama's memoir, "Becoming," will be released on Tuesday, Nov. 13.

"I had to fight stereotypes and notions that people thought they had about what a black woman from the South Side of Chicago should be," she said. "I was labeled as angry and not an asset to my husband, all because I was using my voice."

She added, "Don't feel like something's wrong with you when you have some bumps in the road."

Obama also spoke to the students about confidence in response to a question about how she had proven herself as "more than just the president's wife."

"You have to grow to believe that in yourself. Each and every one of you as women have to, and it doesn't happen overnight," she said. "Confidence and all of that sort of stuff, belief, that takes time."

"You've seen something that I didn't see. You grew up in a different way, so live that way. Carry that forward. Make sure that we're not slipping backwards," she told the students. "And that's up to you guys as the next generation. You've seen great women do amazing things. You have role models everywhere now, and none of us got here easily without someone trying to hold us down."

Obama continued, "So find the [role] models that match your vision, because now they're there. We're all here waiting for you.I would love to hug each and every one of you. I'm proud of you guys."

When Isa Sanchez, a junior elected by the high school as a student body representative, asked Obama how she can help "make everyone as happy as can be," Obama responded with advice likely learned from her eight years as the first lady.

"First of all, you stop trying to make everybody happy. It's impossible," Obama said. "That's not why people elected you. They've elected you because they trusted your judgment, so you've got to trust it."

(MORE: Michelle Obama's inspiring message to first-generation college students: 'There are so many people who believe in you')

Obama stayed to watch the girls perform the dance routine they had been rehearsing prior to the surprise visit.

"I'm so proud of you," Obama said after the performance. "Do not doubt anything."

The former first lady ended her visit with a group hug with the dance students.

"For us, in this moment, it was so inspiring to see someone who we look up to give us that boost of confidence," junior Payton James said at the end of the visit.

"She could show that as females we can still speak our minds and not have to fade into the background," senior Lauren Radomski said of Obama's impact.