You are considered to be married for the entire year, so you should use his state of residence before he passed.
Note: You can still file married filing jointly this year.
I am sorry for your loss.
FINE FOR FEDERAL BUT WHAT ABOUT STATE