When someone is hurting, we're called to comfort. But we must be careful how we respond. Misinterpretation is common, and the effects can be devestating. We need correct interpretation of one's story and a Spirit-inspired response. Here's a snippet from a Desiring God post:
And this is why, especially when praying with someone in need of comfort, we should start prayer asking Holy Spirit to guide our interpretation. Without that guidance my best efforts are quite dangerous, both for myself and for the person with whom I'm praying. It's also a good idea to simply ask Jesus to come, guide, and show me how to pray.
Getting into these habits will help us gain a better perspective, seek a correct interpretation, and be inspired by Holy Spirit to best connect. For great insights and more guidance on this topic, check out the Desiring God blog post that inspired this post!