If you happen to sell the property in question within five years of purchase, the deducted taxes based on interest payments are added to your taxable income.
Therefore, assessees surrender all benefits on their home loans under Section 24 when they decide to sell the owned property.