¡Sóbese! literally means "rub yourself!" It is an interjection to express morbid sympathy for someone who has being physically or emotionally injured. Sometimes Mexicans use se vale sobarse, which means "rubbing the injury to dissipate the pain is allowed".
It always has to be exclaimed with emphasis. The tone and volume of ¡sóbese! convey its severity of the injury.