Surah Al-A'raf 7:74
وَٱذْكُرُوٓا۟ إِذْ جَعَلَكُمْ خُلَفَآءَ مِنۢ بَعْدِ عَادٍ وَبَوَّأَكُمْ فِى ٱلْأَرْضِ تَتَّخِذُونَ مِن سُهُولِهَا قُصُورًا وَتَنْحِتُونَ ٱلْجِبَالَ بُيُوتًا ۖ فَٱذْكُرُوٓا۟ ءَالَآءَ ٱللَّهِ وَلَا تَعْثَوْا۟ فِى ٱلْأَرْضِ مُفْسِدِينَ
And remember when He made you successors after the ʿAad and settled you in the land, [and] you take for yourselves palaces from its plains and carve from the mountains, homes. Then remember the favors of Allāh and do not commit abuse on the earth, spreading corruption."
Translation: Saheeh International
Tafsir
And remember how He made you vicegerents on earth after ‘Ād and gave you habitations in the land making castles in its plains in which you lodge during summer and hewing its mountains into houses in which you lodge during winter buyūtan ‘houses’ is in the accusative because of the implied circumstantial qualifier. …
Excerpt from Tafsir al-Jalalayn, commentary on 7:74, via Quran.com. The reader has the full commentary and 9 more tafsirs.