Deductions & credits

If I receive a check in November 2021 but don’t deposit it until January 2022, do I claim it on taxes for 2021 or 2022 ?