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:55:6

And the stars and trees prostrate.  

and the grass, all stalkless vegetation, and the trees, that ˹vegetation˺ which possesses stalk, prostrate, comply with what is required of them.
القرآن:٥٥:٦

وَالنَّجْمُ وَالشَّجَرُ يَسْجُدَانِ  

{والنجم} ما لا ساق له من النبات {والشجر} ما له ساق {يسجدان} يخضعان لما يراد منهما.