Here is how the glorious holy Quran says, Allah(swt) created the earth flat.
وَٱلأَرْضَ بَعْدَ ذَلِكَ دَحَاهَا
and after that He spread out the earth: He made it flat, for it had been created before the heaven, but without having been spread out; (79-30)
This is the 30th verse of the sura...