Capital Gain Tax Year

I sold a property on 12/30/2022 but did not receive payment until 1/4/2023.  All of the paperwork for the sale was dated 12/30/2022.  In which tax year must this sale be reported?