Investors & landlords

Thanks very much for the quick answer!  The cash payment was made in December 2024 and I have all the documentation, but the rental property wasn't sold until January 2025. So do I use the $20,000 as a selling expense for the 2024 tax year?