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:18:7

Indeed, We have made that which is on the earth adornment for it that We may test them ˹as to˺ which of them is best in deed.  

Truly We have made all that is on the earth, in the way of animals, plants, trees, rivers and so on, as an adornment for it, that We may try them, that We may test mankind observing thereby, which of them is best in conduct, therein, that is, ˹to see which of them˺ is the most abstemious of it.
القرآن:١٨:٧

إِنَّا جَعَلْنَا مَا عَلَى الْأَرْضِ زِينَةً لَهَا لِنَبْلُوَهُمْ أَيُّهُمْ أَحْسَنُ عَمَلًا  

{إنا جعلنا ما على الأرض} من الحيوان والنبات والشجر والأنهار وغير ذلك {زينة لها لنبلوهم} لنختبر الناس ناظرين إلى ذلك {أيهم أحسن عملاً} فيه أي أزهد له.