عَنْ أَبِي هُرَيْرَةَ عَبْدِ الرَّحْمَنِ بْنِ صَخْرٍ رَضِيَ اللهُ عَنْهُ قَالَ: سَمِعْت رَسُولَ اللَّهِ صلى الله عليه و سلم يَقُولُ: مَا نَهَيْتُكُمْ عَنْهُ فَاجْتَنِبُوهُ، وَمَا أَمَرْتُكُمْ بِهِ فَأْتُوا مِنْهُ مَا اسْتَطَعْتُمْ، فَإِنَّمَا أَهْلَكَ الَّذِينَ مِنْ قَبْلِكُمْ كَثْرَةُ مَسَائِلِهِمْ وَاخْتِلَافُهُمْ عَلَى أَنْبِيَائِهِمْ
Meaning: I heard the Messenger of Allah ﷺ say: What I have forbidden you, avoid it. What I have commanded you, do as much of it as you can. Those before you were destroyed only by their many questions and their disagreeing with their prophets.
Sahih: agreed upon by al-Bukhari and Muslim.
Narrated by Abu Hurayrah · Sahih al-Bukhari 7288; Sahih Muslim 1337