Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:88:20

And at the earth - how it is spread out?  

And the earth, how it was laid out flat?, and thus infer from this the power of God, exalted be He, and His Oneness? The commencing with the ˹mention of˺ camels is because they are closer in contact with it ˹the earth˺ than any other ˹animal˺. As for His words sutihat, ‘laid out flat’, this on a literal reading suggests that the earth is flat, which is the opinion of most of the scholars of the ˹revealed˺ Law, and not a sphere as astronomers (ahl al-hay’a) have it, even if this ˹latter˺ does not contradict any of the pillars of the Law.
القرآن:٨٨:٢٠

وَإِلَى الْأَرْضِ كَيْفَ سُطِحَتْ  

{وإلى الأرض كيف سُطحت} أي بسطت، فيستدلون بها على قدرة الله تعالى ووحدانيته، وصدرت بالإبل لأنهم أشد ملابسة لها من غيرها، وقوله: سُطحت ظاهر في الأرض سطح، وعليه علماء الشرع، لا كرة كما قاله أهل الهيئة وإن لم ينقض ركنا من أركان الشرع.