Deductions & credits

I filed my 2018 state taxes in 2020 not 2019 and received a refund which I applied to my 2019 state taxes, what year should I use this 2018 state refund (forwarded as a 2019 tax payment) as a federal deduction in the year I filed 2020 or the year it was applied to 2019?