Abdullah bin Abi Muhill al-Amiri said: We were with Ali bin Abi Talib (may Allah be pleased with him), and we passed by the land of Babylon that had been made to sink, and Ali (may Allah be pleased with him) did not pray there.
(b) Hujr al-Hadrami narrates from Ali (may Allah be pleased with him) that he said: I do not pray in a place that Allah has caused to sink three times.
This prohibition on praying there, if it is established as marfu' (from the Prophet), is not for a reason that relates to the prayer itself, so if someone prays there he does not repeat it; rather it is, and Allah knows best, as in the following narration.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4365