Retirement tax questions

If you sold it a prior year then it goes on that year’s return.  There shouldn’t be any credit left to pay back in 2017.  Do you need to amend 2016 or prior?