Hi,
Although, income tax act only talks about completion within 3 years. Tax authorities in the past have denied the exemption if the property has been booked before the sale of old flat.
However, there are court rulings in favour of taxpayers that exemption is allowed even if flat is books before the sale of old flat.
Refer below decision