is it 2023 expense or 2022 ?

i paid contract labor in 2022 ( dec 30/2022) and amount got credited to contractor on dec/30/2022 but it didn't show up in my account until jan/03/2023

 

do i count this expense in 2022 or 2023 ( of course not going to do twice ) but wondering what's best practice