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:20:85

˹Allah˺ said, "But indeed, We have tried your people after you ˹departed˺, and the Samiri has led them astray."  

But those he supposed ˹to be following him˺ had remained behind, for He, exalted be He, said, ‘Indeed We tried your people after you, that is, after your departure from them, and the Samaritan led them astray’, so they took to worshipping the ˹golden˺ calf.
القرآن:٢٠:٨٥

قَالَ فَإِنَّا قَدْ فَتَنَّا قَوْمَكَ مِنْ بَعْدِكَ وَأَضَلَّهُمُ السَّامِرِيُّ  

{قال} تعالى {فإنا قد فتنا قومك من بعدك} أي بعد فراقك لهم {وأضلهم السامري} فعبدوا العجل.