A Mission District pedestrian was robbed Tuesday evening, when he paused in his travels to text.

It was 10:45 p.m. when the 25-year-old victim was walking through the area of 21st and Shotwell Streets.

According to the San Francisco Police Department, the man "was walking on sidewalk and then stopped to text a friend." That's the moment when two suspects, both believed to be around 30-years-old, rushed him from behind.

One of the muggers showed the victim a "black handgun," police say, then punched the pedestrian in the head "several times."

Together, the dreadful duo robbed the man of the cash he had in his pocket, and took the phone on which he'd so recently been texting, the SFPD reports.

The victim was injured seriously enough in the attack that he had to be transported to San Francisco General Hospital, where police say he was in stable condition as of last night.

The suspects fled on foot, police say, and remain at large as of Wednesday morning.