Retirement tax questions

I was working somewhere and I had switched jobs around July 2022.  On 10/31/22 they had terminated that account and I received a check for the amount that was in there so it was considered a “withdrawal”.  Honestly can’t remember if it was done on last years taxes or if it needed to be done on this years?