/ˈsɪmpəθɪ/

the feeling of being sorry for sb; showing that you understand and care about sb’s problems

If you have sympathy for someone who is in a bad situation, you are sorry for them, and show this in the way you behave toward them.