multiple states

I'm retired military and moved from AZ in March 2021 after taking a lump sum distribution from a trust company. I spent 4 months traveling with family in ND while waiting to move to ID in August.  How do I document this in Turbotax. How is the distribution treated for state tax purposes. How about mil Retirement income?