“We condemn this racist, anti-black act in the strongest possible terms and have referred it to the N.Y.P.D.,” a Barnard spokeswoman said in a statement. “Our community stands together against hate.”

Ms. Majors was walking in Morningside Park in Manhattan the night of Dec. 11 when, according to the police, at least three teenagers attempted to rob her. She struggled, and one of her attackers stabbed her multiple times with a knife, the police said.

The police have identified three people connected to the attack. One of them, a 13-year-old, was arrested and gave statements to the police implicating himself and two middle school classmates, both 14, in the crime.

While Ms. Majors was white and all three teenagers are black, the authorities have said that there was no racial aspect to the crime — a fact that was not mentioned in the robocall.

For just under two minutes, the unidentified caller uses racist epithets and rants about Ms. Majors’s parents, criticizing them for allowing her to associate with people of other races.

“Remember to teach your children: ‘Around blacks, never relax,’” the message says.

The man does not identify himself other than mentioning the Road to Power, an outlet that posts racist videos and comments on social media sites that cater to right-wing extremists. It was labeled “a white supremacist and anti-Semitic broadcasting outlet” by the Anti-Defamation League, which monitors such groups.

According to Oren Segal, the director of the organization’s Center for Extremism, the Road to Power has been behind several similar robocalls attacking Jews, people of color and immigrants since 2017.