Hadithcore
Sahih Muslim, 1037 a
sahih

Mu'awiya said:

Be cautious about ahadith except those which were current during the reign of Umar, for he exhorted people to fear Allah, the Exalted and mMajestic. I heard the Messenger of Allah (ﷺ) as saying: He upon whom Allah intends to bestow goodness, He confers upon him an insight in religion; and I heard the Messenger of Allah (ﷺ) as saying: I am the treasurer. To one whom I give out of (my own) sweet will, he would be blessed in that, but he whom I give (yielding to) his constant begging and for his covetousness is like one who would eat, but would not be satisfied.

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا زَيْدُ بْنُ الْحُبَابِ، أَخْبَرَنِي مُعَاوِيَةُ بْنُ صَالِحٍ، حَدَّثَنِي رَبِيعَةُ بْنُ يَزِيدَ الدِّمَشْقِيُّ، عَنْ عَبْدِ اللَّهِ بْنِ عَامِرٍ الْيَحْصَبِيِّ، قَالَ سَمِعْتُ مُعَاوِيَةَ، يَقُولُ إِيَّاكُمْ وَأَحَادِيثَ إِلاَّ حَدِيثًا كَانَ فِي عَهْدِ عُمَرَ فَإِنَّ عُمَرَ كَانَ يُخِيفُ النَّاسَ فِي اللَّهِ عَزَّ وَجَلَّ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم وَهُوَ يَقُولُ ‏"‏ مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ ‏"‏ ‏.‏ وَسَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏"‏ إِنَّمَا أَنَا خَازِنٌ فَمَنْ أَعْطَيْتُهُ عَنْ طِيبِ نَفْسٍ فَيُبَارَكُ لَهُ فِيهِ وَمَنْ أَعْطَيْتُهُ عَنْ مَسْأَلَةٍ وَشَرَهٍ كَانَ كَالَّذِي يَأْكُلُ وَلاَ يَشْبَعُ ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 12, Hadith 126
USC-MSA web (English) reference
Book 5, Hadith 2257 (deprecated numbering scheme)
Sharh · explanationclick to expand
Transmitting the Prophet's Sunnah and narrating Hadīths from the Messenger of Allah (may Allah's peace and blessings be upon him) is a great matter and serious responsibility. The Companions (may Allah be pleased with them) were keen on the accuracy and authenticity of these narrations. In this tradition, Caliph Mu‘āwiyah ibn Abi Sufyān (may Allah be pleased with him) warns his subjects and those around him about the excessive narrating of Hadīths from the Messenger of Allah (may Allah's peace and blessings be upon him) without verification of the reports or differentiation between the Sunnah and Prophetic Hadīths and other reports, lest they might engage in lying about the Messenger of Allah (may Allah's peace and blessings be upon him). Indeed, lying about the Messenger of Allah (may Allah's peace and blessings be upon him) is a sin that is more grave than lying about others. Mu‘āwiyah's warning to the people was during his reign, given the prevalent transmission of reports about the People of the Book and the contents that were found in their books after their countries were conquered. So, he feared that their statements could be mixed with the statements of the Messenger of Allah (may Allah's peace and blessings be upon him). Yet, he excluded the time and reign of 'Umar ibn al-Khattāb (may Allah be pleased with him), saying: "Beware of Hadīths, except those Hadīths during the reign of ‘Umar" i.e., unless you accept and narrate the Hadīths that were known, widely acted upon, and acknowledged during the time of ‘Umar (may Allah be pleased with him). And more worthy among them are those Hadīths that were narrated by ‘Umar (may Allah be pleased with him) himself. Then, clarifying why he excluded Hadīths that were during the reign of ‘Umar (may Allah be pleased with him), he said: "For indeed 'Umar used to make people fearful" by his strength and firmness, as he used to punish those who committed mistakes and beat them with his small staff in order to defend and preserve the rights of Allah Almighty and the matters of His religion, lest the Hadīths of the Messenger of Allah (may Allah's peace and blessings be upon him) might be subject to distortion and alteration. Therefore, Mu‘āwiyah (may Allah be pleased with him) urged the people to refer to the Hadīths that were narrated during that era, given that it was marked by great meticulousness in the narration of Hadīths. This is because 'Umar (may Allah be pleased with him) used to emphasize to his subjects the seriousness of transmitting reports from the Messenger of Allah (may Allah's peace and blessings be upon him). For example, he would require witnesses for Hadīths. So, he regulated this matter, and the people feared his authority and prohibition of hurried narration of Hadīths. As a result, the sound Hadīths were verified, and the Sunan became widely known and distinguished from other texts during his time (may Allah be pleased with him). This does not limit the meticulousness in the narration of Hadīths to the reign of 'Umar (may Allah be pleased with him) only, but it also existed during the Prophet's lifetime and after that, till the era of Hadīth compilation, as Allah Almighty caused to exist those who revised the Hadīths of His Messenger (may Allah's peace and blessings be upon him) and distinguished the sound ones from others and verified the narrations and those who transmitted them, based on precise and strict rules. Mu‘āwiyah's attitude shows his keenness during his time in examining and distinguishing the Prophet's statements from others. The Hadīth points out the merit of ‘Umar ibn al-Khattāb (may Allah be pleased with him) with regard to preserving the Sunnah during his caliphate. The ruler should urge his subjects to seek knowledge and try to verify and distinguish the sound from the unsound..