The stabbing was reported at 11:15 p.m. near the intersection of Seventh and Stevenson streets.
The 36-year-old victim got into an argument with the female suspect, who pulled out a small knife and stabbed him once in the back, according to police.
The man was taken to San Francisco General Hospital to be treated for the injury, which is not considered life-threatening, police said.
When investigators questioned the man about what happened, the man refused to provide further details about the stabbing.
Anyone with information about the case is encouraged to call the Police Department's anonymous tip line at (415) 575-4444 or send a tip by text message to TIP411.