Two robbers stabbed a man at a Brooklyn subway station Sunday afternoon, police said.

The 38-year-old victim was leaving a staircase at the Myrtle Ave. G train station in Bedford-Stuyvesant at about 1:45 p.m., when two men dressed all in black tried to rob him, cops said.

One of the men stabbed him in the chest and ran off, police said. Medics took the victim to Woodhull Hospital. Hes expected to survive the attack, cops said.

It wasnt immediately clear if the men took any property from the victim.