Ehh, sounds like your husband needs a bit of empathy. You just told him that you were so sweaty because you had a nightmare. Instead of telling you how stinky you are and that you need to wash yourself, he could have at least said, are OK now?
I sweat a lot when I'm having a bad dream or toss and turn. I had a really bad nightmare, woke up in a bad sweat, and my husband hugged me until the nightmare passed. He sure as hell didn't tell me to go shower.
On the other hand, I've been next to a sweaty guy, when my husband was ill. I didn't make him go shower, I just turned the fan on him so he'd cool down. I also took off the top duvet and gave him a smaller blanket. The next morning I changed the sheets, and when he naturally woke up, I told him how sweaty he was the night before and he showered on his own.
My point is that there's a nice way to say this, rather than telling you to go shower at 5am. If you were still awake, it could have been to get your bearings after a bad nightmare, and then go back to sleep.