That is an excellent question.
When it comes to listening, mood matters. When you are calm and open, you are more capable of being attentive and focused and offering compassion. So the best way to describe it would be to listen when you “feel” like you could be compassionate. Never force yourself to try and listen; your attention will be hurried and you will be less-likely to offer comfort.