As a man, who masturbates daily, I can tell you that it really has nothing to do with you.
Sometimes I masturbate with my partner, but most of the time I am alone in the act! I think it is important to have "me" time. Almost like meditation!
It helps keep me in tune with my body, and sometimes when I masturbate it has nothing to do with being sex, but more to do with just habit. And, a way to relieve stress.
Do not think of it as your husband rejecting you, or not wanting to be with you, just think of it as him doing his daily routine. Because, that is truly what it is.
Like washing your hair, or brushing your teeth!
However, I would suggest that you let your husband know he can come to you for sex also, because some times he may prefer that, but may not know that you are willing to have sex with him in those moments.