Before he was rap mogul Jay-Z, and before he was a teenage drug dealer, he was Shawn Carter — a quiet, withdrawn kid who read far beyond his grade level and was grappling with the trying circumstances of growing up fatherless and poor in New York’s Marcy Projects.

As the rapper tells it, in grade school, he found something of an escape in language. He’s mentioned this in interviews throughout his career, most recently telling David Letterman, “I had a sixth-grade teacher. Her name was Ms. Lowden, and I just loved the class so much. Like reading the dictionary, and my love of words — I just connected with her.”

That teacher’s name is Renee Rosenblum-Lowden, and she remembers Jay-Z as well, though she still refers to him as Shawn.

Rosenblum-Lowden, 77, now lives in Columbia, Md., but in 1980, she taught sixth grade at Brooklyn’s I.S. 318. Carter, a shy and avid reader, was one of her ­standout students.

“The thing I remember about Shawn is he took the reading test and he scored 12th grade in the sixth grade,” Rosenblum-Lowden said in a phone interview. “And I remember telling him — because I really feel it’s important to tell kids they’re smart — I said, ‘You’re smart, you better do well.’ And he listened.”

They connected over one of the teacher’s favorite lessons, in which she would ask the class a question using a word that was likely beyond their vocabulary. To answer the question — to even understand it — the students had to use a dictionary. She would ask things such as “What does a loquacious person like to do?” and the students would “have to look it up to answer it.”

“The fact that that made an impression on him was very cool,” she said.

Rosenblum-Lowden first learned of the rapper Jay-Z when she began teaching about prejudice in rap lyrics.

But, she said, “I didn’t know Shawn was Jay-Z at that time.” She didn’t make the connection until she read a 1999 Teen People profile of Jay-Z and she realized he and Shawn Carter were one in the same.

In the piece, Jay-Z called Rosenblum-Lowden “someone who helped turn my life around.”

“She took our class to her house in Brooklyn on a field trip,” he continued. “You know many teachers who’d take a bunch of black kids to their house?”

He’s mentioned the field trip in various interviews. Rosenblum-Lowden said she remembers it well. She had taken the class to the New York Transit Museum, which was near her home in Brooklyn Heights.

“We walked to the promenade and saw the skyline,” she said. “And then I thought it’d be fun for them to come up to my ­apartment.”

So she brought them up, an experience that stuck with Carter long after he became famous for several reasons, including what his teacher kept in her kitchen.

“She had ice in the refrigerator way back when no one had it, and I thought, ‘Oh man, I might be an English teacher,’ ” Carter told Letterman. “She gettin’.”

That he remembers the moment brings joy to his teacher.

“I remember when he came to my apartment, there were all these tough kids who sat with their arms folded. I remember he and another kid staring at my refrigerator. And I never dreamed in my wildest dreams that he would remember that,” she said. “It made such an impression on me, but I never imagined it made such an impression on him.”

While the two may have bonded over words and ice cubes, there was a darker side to the young Carter. It was a difficult period in his life, right around the time his father left his family after becoming addicted to heroin, as he told Letterman.

“I remember him as the kid who never smiled,” Rosenblum-Lowden said. She believes in using humor in the classroom, and making Carter smile was always one of her goals. A sense of accomplishment accompanied every grin.

“One thing that I feel uncomfortable with is all the credit he gives me. I don’t think I’m deserving of all that credit. He was super bright,” she said. Still, “it makes me feel great that I had a part, or that he feels I had a part, in his love for words.”