Assalamualaikum

If a person say had a loss and they were depressed about it and they spoke about it with a friend or family member and not Allah would it be seen as bad? Or would there be some virtue in it?

Jazzakallahu Khair