A young boy and an elderly man were hospitalized after a car jumped the curb near Boston University, striking the pair.

The boy, 10, and the man, 78, were reportedly walking on the sidewalk when a woman drove a Mercedes onto the sidewalk as a result of a fender bender. 

The crash happened around 9:21 p.m. near 640 Commonwealth Ave., Boston.com reported. The woman told police she was looking at her cellphone when she saw a Toyota Camry stopped in front of her and was unable to stop. 

The Toyota was stopped in a bike lane waiting to pick up an Uber passenger, Boston.com reported. 

The boy reportedly had to be pulled out from under the car. Both the boy and the elderly man were being treated for non life-threatening injuries, according to the report.

The Mercedes driver was cited for distracted driving and the Uber driver received a ticket for unsafe stopping.