Chicago (CBS) — Two would-be robbers ended up in the hospital overnight after the man they were targeting pulled out his own gun and shot them.

A 29-year-old man was standing on the sidewalk on West Cortland Street near North Francisco Avenue in the Logan Square neighborhood around 9:30 p.m. Monday.

READ MORE: Woman Stabbed Near CTA Green Line, Police ID Suspect In Stabbing Death Of Anat Kimchee

Two men got out of a silver Nissan holding guns and tried to rob him.

READ MORE: 'It Is Sad': The United Center COVID Mass Vaccination Site Closes Thursday

But, the victim had a gun of his own and fired it. Both robbery suspects were hit and went to the hospital in stable condition.

MORE NEWS: Over 24,000 Unemployment Claims Filed In Illinois Last Week Amid COVID-19 Pandemic

Police say the gun owner had a concealed carry license and was not hurt.