After you file

Wait for the check ... look at the date ... if it was written in 2023 then it goes on the 2023 return even if you do not get the check in the mail until 2024.