Meditation is one of the best ways to build Compassion. It helps overcome the "bystanders' effect". According to one study by the Greater Good Science Center, meditators are more likely to give up their seat to an elderly person compared with non-meditators by a ratio of 3:1.
Here is a short practice to do the same.