Retirement tax questions

I did a withdrawl in January and the banker at the credit union said I would still file taxes on it this year because I got the pension check in 2024. I did not withdraw the full amount only a portion. Yes the full amount was in box 1.