A teenager from Memphis, Tennessee, is being celebrated after overcoming extreme personal challenges and achieving academic success.

Raleigh Egypt High School senior Tupac Mosley maintained a 4.3 GPA, received a 31 ACT score and was named valedictorian of his graduating class all while dealing with the death of his father and being homeless. The 17-year-old was accepted into more than 40 colleges and earned more than $3 million in scholarships.

Mosley, who lived in a tent at one point, told CNN, "It was an honor and a blessing."

He originally set a personal goal of earning $1 million in scholarships to "do the best for his school," but quickly decided to "beat a million" after he began to receive offers.

The teen's hard work paid off, but he had no idea just how much. "I actually did not know that I received $3 million until graduation," he said.

Achieving academic success runs in Mosley's family; his older brother has been a valedictorian.

Mosley attributed his success to family, friends and people at his school, who he called a "great support."

He plans to study electrical engineering at Tennessee State University.

Amazed by his accomplishments and how far he's come, Mosley said, "As I've been worrying about finances and money for most of my life, to know that I can be doing something that I enjoy for my next four years and really … starting my career off is … refreshing and motivating."

The soon-to-be college freshman continued, "I can do this with confidence, not having to worry about anything else."