Q. Do I need to claim it on 2024 taxes or 2025?
A. Neither, since it effectively went for tuition (a qualified educational expense).
If you (or your parents) counted some of that same tuition for the education credit, then some of it would be taxable, on your 2024 tax return.
For more specific advice, provide some numbers.