A straphanger was stabbed after a woman accused him of fondling himself on the subway in Manhattan, cops said Sunday.

The 29-year-old was riding the southbound 5 line on the East Side around 8:30 p.m. Saturday when a woman started arguing with the man, police said.

“Stop playing with yourself,” the woman said, according to law enforcement sources.

The man told the woman he wasn’t and the fight eventually turned physical, cops said.

The brawl spilled onto the platform at East 59th Street and Lexington Avenue, where the woman stabbed him in the shoulder, cops said.

The woman, who was believed to be in her 30s, fled with another man and a baby stroller, according to the NYPD.

The man went to Mt. Sinai Hospital for treatment, police said.