Question about contract work

I completed a contract/independent job last year (2024) and submitted a W9 form to them. I was not paid for the work until January of this year (2025). Do I pay taxes on this income next year (2026), since it was technically paid in the 2025 calendar year? Or would I report this income this year on my 2024 taxes?