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:7:152

Indeed, those who took the calf ˹for worship˺ will obtain anger from their Lord and humiliation in the life of this world, and thus do We recompense the inventors ˹of falsehood˺.  

God, exalted be He, says, ‘Surely those who chose the calf, as a god. wrath, chastisement, and abasement shall come upon them from their Lord in the life of this world: and so they were punished ˹for this deed˺ by the command to slay themselves, and abasement was stamped upon them until the Day of Resurrection. Even, as We have requited them, so We requite those who invent lies, against God by way of idolatry and otherwise.
القرآن:٧:١٥٢

إِنَّ الَّذِينَ اتَّخَذُوا الْعِجْلَ سَيَنَالُهُمْ غَضَبٌ مِنْ رَبِّهِمْ وَذِلَّةٌ فِي الْحَيَاةِ الدُّنْيَا ۚ وَكَذَٰلِكَ نَجْزِي الْمُفْتَرِينَ  

{إن الذين اتخذوا العجل} إلها {سينالهم غضب} عذاب {من ربِّهم وذلَّة في الحياة الدنيا} فعذبوا بالأمر بقتل أنفسهم وضربت عليهم الذلة إلى يوم القيامة {وكذلك} كما جزيناهم {نجزي المفترين} على الله بالإشراك وغيره.

See similar narrations below:

Collected by Suyūṭī
suyuti:4-1280bʿAli > Innā > Allāh > In
Request/Fix translation

  

السيوطي:٤-١٢٨٠b

" عَنْ عَلِىٍّ قال: إِنَّا سَمِعْنا الله يَقُولُ: {إِنَّ الَّذِينَ اتَّخَذُوا الْعِجْلَ سَيَنَالُهُمْ غَضَبٌ مِنْ رَبِّهِمْ وَذِلَّةٌ فِي الْحَيَاةِ الدُّنْيَا وَكَذَلِكَ نَجْزِي الْمُفْتَرِينَ} وقَالَ: وَمَا نَرَى القومَ إِلاَّ قَدْ افْتَرُوا فِرْيةً وَمَا أُرَاهَا إِلاَّ سَتُصِيبُهُمْ".  

ابن راهويه