Retirement tax questions

You can't make any IRA contribution for 2021 unless on of you had income from working (compensation).  When did you retire?