I am so sorry to hear about your husband.

Hugs to you.
I think many dogs in general can sense death. When my Mom passed away when I was young and it was very sudden (car accident) when we got home Sam had pooped in her bed. He had NEVER done this before and actually was not allowed on the furnature and never did get on it except this one time. So I know he knew something had happened. So sad.