This is especially important with your spouse/partner/significant other.
At the beginning of our relationship, I can't tell you how many times I heard, "I'm not asking for you to solve my problem, I just want you to listen!"
It can be frustrating, I know, but just shut up and be there for the person that just needs you to be there.