My husband received late payment early 2017 for work done in AZ in 2016, after we had moved to CA the end of 2016. Should this 1099 MISC be reported on AZ return or CA?

The work was done in AZ but it was freelance work and the 2017 payment was made a while after we moved to CA. When I entered the 1099 MISC info to amend our return it changed the CA refund.