The work was completed and invoiced in 2024. Payment was not received until 2025.
You need to report income in the fiscal period you earn it, no matter when you receive it.