Deductions & credits

Thank you! I appreciate your time and expertise-

So that I understand, if I received the bonus last year 2024 and repay it back in 2025, I claim the deduction (in 2026 actual year) for the 2025 tax year? I do itemize because I have rental properties.