State tax filing

I have the same situation with a move from VA to DC.

 

I lived in VA for half of 2021 and DC for half of 2021. I received a bonus from the year 2021 in 2022 while living in DC.

 

Should the bonus income be allocated 1) 50% VA and 50% DC or 2) fully to DC?

 

Thanks