Abu Hurairah reported,

By Allah, were it not for two verses in the Book of Allah Almighty, I would never have narrated anything from him, meaning from the Prophet ﷺ. Were it not for Allah's words, "Indeed, those who conceal what Allah has revealed of the Book" [Baqarah 2:159], to the end of the two verses.

Ibn Majah 262

Sahih

حدثنا أبو مروان العثماني محمد بن عثمان حدثنا إبراهيم بن سعد عن الزهري عن عبد الرحمن بن هرمز الأعرج أنه سمع

أبا هريرة يقول

والله لولا آيتان في كتاب الله تعالى ما حدثت عنه يعني عن النبي ﷺ شيئا أبدا لولا قول الله {إن الذين يكتمون ما أنزل الله من الكتاب} إلى آخر الآيتين

ابن ماجه 262صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
One who is asked about knowledge and conceals it
Numbering
Darussalam 262
Ibn Majah 262