1. IF Father had Gifted his property to his Son via a Registered Gift Deed, THEN it is perfectly legal to purchase such property from Son.
2. To be further legally safe, the new Sale Deed must be signed jointly by Father & Son as "Confirming & Consenting Parties", to avoid any future legal disputes between father & son. This will be Final & Irrefutable & non-Challengable for all futuristic legal purposes.