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:54:52

And everything they did is in written records.  

And everything they, that is, servants, have done is, recorded, in the scrolls, the books of the Guardian Angels (al-hafaza),
القرآن:٥٤:٥٢

وَكُلُّ شَيْءٍ فَعَلُوهُ فِي الزُّبُرِ  

{وكل شيء فعلوه} أي العباد مكتوب {في الزبر} كتب الحفظة.