State tax filing

Pension funds and other retirement funds are different I have been told that you are taxed in the state of residency