Deductions & credits

If you paid in 2023 then Medical expenses for 2023. if your payment was in 2024 it would only be included with 2024 return.