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:3:184

Then if they deny you, ˹O Muhammad˺ - so were messengers denied before you, who brought clear proofs and written ordinances and the enlightening Scripture.  

But if they deny you, so were denied messengers before you who came bearing clear proofs, miracles, and the Scriptures, such as the scrolls of Abraham, and the Illuminating, the lucid, Book, that is, the Torah and the Gospel (a variant reading establishes the ˹prefixed preposition˺ bā’ in both ˹words, sc. bi’l-zubur wa-bi’lkitāb l-munīr, ‘with the Scriptures and with the Illuminating Book’˺), so be patient as they were.
القرآن:٣:١٨٤

فَإِنْ كَذَّبُوكَ فَقَدْ كُذِّبَ رُسُلٌ مِنْ قَبْلِكَ جَاءُوا بِالْبَيِّنَاتِ وَالزُّبُرِ وَالْكِتَابِ الْمُنِيرِ  

{فإن كذَّبوك فقد كُذب رسل من قبلك جاءُوا بالبينات} المعجزات {والزبُر} كصحف إبراهيم {والكتاب} وفي قراءة بإثبات الباء فيهما {المنير} الواضح هو التوراة والإنجيل فاصبر كما صبروا.

See similar narrations below:

Collected by Qurʾān
quran:35:25

And if they deny you - then already have those before them denied. Their messengers came to them with clear proofs and written ordinances and with the enlightening Scripture.  

And if they, that is, the people of Meccans, deny you, those before them also denied: their messengers brought them manifest signs, miracles, and with scriptures, such as the scrolls of Abraham, and with the illuminating Book, namely, the Torah and the Gospel, so endure ˹patiently˺ as they endured.
القرآن:٣٥:٢٥

وَإِنْ يُكَذِّبُوكَ فَقَدْ كَذَّبَ الَّذِينَ مِنْ قَبْلِهِمْ جَاءَتْهُمْ رُسُلُهُمْ بِالْبَيِّنَاتِ وَبِالزُّبُرِ وَبِالْكِتَابِ الْمُنِيرِ  

{وإن يكذبوك} أي أهل مكة {فقد كذب الذين من قبلهم جاءتهم رسلهم بالبينات} المعجزات {وبالزبر} كصحف إبراهيم {وبالكتاب المنير} هو التوراة والإنجيل، فاصبر كما صبروا.