Part time resident Alabama

I took out a lump sum withdrawal from my 401k during January while a resident/living in North Carolina.  Moved to Alabama in May as a permanent resident.  How do I exclude that amount on my Alabama state tax return, the instructions do not explain how to do this since the income was received while a resident in North Carolina.  The state return from Alabama tries to tax the amount.