You pay tax to the state you live in. If you did not live in the old state in 2023 it does not matter that the pension is coming from that state.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**