You should "tell him you've also had bad days and asked him how may you help him out".
Empathy is the ability to understand and share the feelings of another individual. In this case, by telling that person you've also felt upset before due to bad days, you are setting common ground with him or her. This will make that person feel understood and aided as you also ask if you could help him or her out with something.