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:2:159

Indeed, those who conceal what We sent down of clear proofs and guidance after We made it clear for the people in the Scripture - those are cursed by Allah and cursed by those who curse,  

The following was revealed concerning the Jews: Those who conceal, from people, the clear proofs and the guidance that We have revealed, such as the ‘stoning’ verse and the description of Muhammad (s), after We have shown them clearly in the Scripture, the Torah — they shall be cursed by God, that is, He will move them far away from His mercy, and by the cursers, the angels, believers, or by every single thing, when they supplicate that they be cursed.
القرآن:٢:١٥٩

إِنَّ الَّذِينَ يَكْتُمُونَ مَا أَنْزَلْنَا مِنَ الْبَيِّنَاتِ وَالْهُدَىٰ مِنْ بَعْدِ مَا بَيَّنَّاهُ لِلنَّاسِ فِي الْكِتَابِ ۙ أُولَٰئِكَ يَلْعَنُهُمُ اللَّهُ وَيَلْعَنُهُمُ اللَّاعِنُونَ  

ونزل في اليهود: {إن الذين يكتمون} الناس {ما أنزلنا من البينات والهدى} كآية الرجم ونعت محمد {من بعد ما بيَّناه للناس في الكتاب} التوراة {أولئك يلعنهم الله} يبعدهم من رحمته {ويلعنهم اللاعنون} الملائكة والمؤمنون أو كل شيء بالدعاء عليهم باللعنة.

See similar narrations below:

Collected by Ḥākim
hakim:3074Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Ḥasan b. ʿAlī b. ʿAffān al-ʿĀmirī > Abū Usāmah > Ṭalḥah b. ʿAmr > ʿAṭāʾ b. Abū Rabāḥ > Abū Hurayrah

[Machine] He said, "If it were not for a verse from the Book of Allah, I would not have informed anyone about anything." It was said, "What is it, O Abu Hurayrah?" He said, "The verse: 'Indeed, those who conceal what We sent down of clear proofs and guidance after We made it clear for the people in the Scripture - those are cursed by Allah and cursed by those who curse, except for those who repent and correct themselves and make evident [what they concealed].'" [Al-Baqarah 160]  

الحاكم:٣٠٧٤حَدَّثَنَا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا الْحَسَنُ بْنُ عَلِيِّ بْنِ عَفَّانَ الْعَامِرِيُّ ثنا أَبُو أُسَامَةَ ثنا طَلْحَةُ بْنُ عَمْرِو أَخْبَرَنِي عَطَاءُ بْنُ أَبِي رَبَاحٍ عَنْ أَبِي هُرَيْرَةَ

أَنَّهُ قَالَ «لَوْلَا آيَةٌ مِنْ كِتَابِ اللَّهِ مَا أَخْبَرْتُ أَحَدًا شَيْئًا» قِيلَ وَمَا هِيَ يَا أَبَا هُرَيْرَةَ؟ قَالَ آيَةُ {إِنَّ الَّذِينَ يَكْتُمُونَ مَا أَنْزَلْنَا مِنَ الْبَيِّنَاتِ وَالْهُدَى مِنْ بَعْدِ مَا بَيَّنَّاهُ لِلنَّاسِ فِي الْكِتَابِ أُولَئِكَ يَلْعَنُهُمُ اللَّهُ وَيَلْعَنُهُمُ اللَّاعِنُونَ إِلَّا الَّذِينَ تَابُوا وَأَصْلَحُوا وَبَيَّنُوا} [البقرة 160]  

«هَذَا حَدِيثٌ صَحِيحُ الْإِسْنَادِ وَلَمْ يُخَرِّجَاهُ» صحيح