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:99:5

Because your Lord has commanded it.  

for its Lord will have inspired it, that is, He will have commanded her to ˹do˺ this — in a hadīth ˹it is stated˺, ‘It ˹the earth˺ shall testify to every single deed committed by every servant and handmaiden upon its surface’.
القرآن:٩٩:٥

بِأَنَّ رَبَّكَ أَوْحَىٰ لَهَا  

(بأن) بسبب أن (ربك أوحى لها) أي أمرها بذلك، وفي الحديث "" تشهد على كل عبد أو أمة بكل ما عمل على ظهرها "".