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

The example of those who were entrusted with the Torah and then did not take it on is like that of a donkey who carries volumes ˹of books˺. Wretched is the example of the people who deny the signs of Allah. And Allah does not guide the wrongdoing people.  

The likeness of those who were entrusted with the Torah, those who were charged with implementing it, then failed to uphold it, ˹then˺ failed to act in accordance with it, in what pertains to the descriptions of the Prophet (s), and so did not believe in him, is as the likeness of an ass carrying books, in that it does not benefit from them. Evil is the likeness of the people who deny God’s signs, those confirming the truth of the Prophet (s) — (the object of rebuke is omitted but is implied to be hādhā’l-mathalu, ‘this likeness’). And God does not guide the evildoing folk, the disbelievers.
القرآن:٦٢:٥

مَثَلُ الَّذِينَ حُمِّلُوا التَّوْرَاةَ ثُمَّ لَمْ يَحْمِلُوهَا كَمَثَلِ الْحِمَارِ يَحْمِلُ أَسْفَارًا ۚ بِئْسَ مَثَلُ الْقَوْمِ الَّذِينَ كَذَّبُوا بِآيَاتِ اللَّهِ ۚ وَاللَّهُ لَا يَهْدِي الْقَوْمَ الظَّالِمِينَ  

{مثل الذين حملوا التوراة} كلفوا العمل بها {ثم لم يحملوها} لم يعملوا بما فيها من نعته ﷺ فلم يؤمنوا به {كمثل الحمار يحمل أسفارا} أي كتبا في عدم انتفاعه بها {بئس مثل القوم الذين كذبوا بآيات الله} المصدقة للنبي ﷺ والمخصوص بالذم محذوف تقديره هذا المثل {والله لا يهدي القوم الظالمين} الكافرين.