Deductions & credits

You report the sale on the 2021 tax return.  If this was a seller financed sale then you will report the seller interest income on the 2022 tax return.