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.
ibnmajah:1Abū Bakr b. Abū Shaybah > Sharīk > al-Aʿmash > Abū Ṣāliḥ > Abū Hurayrah

The Prophet said: "Whatever I have commanded you do it, and whatever I have forbidden you, refrain from it."  

ابن ماجة:١حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ قَالَ حَدَّثَنَا شَرِيكٌ عَنِ الأَعْمَشِ عَنْ أَبِي صَالِحٍ عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ

رَسُولُ اللَّهِ ﷺ «مَا أَمَرْتُكُمْ بِهِ فَخُذُوهُ وَمَا نَهَيْتُكُمْ عَنْهُ فَانْتَهُوا»  


See similar narrations below:

Collected by Aḥmad, Suyūṭī
ahmad:8664Aswad b. ʿĀmir > Sharīk > al-Aʿmash > Abū Ṣāliḥ > Abū Hurayrah

The Prophet said: "Whatever I have commanded you do it, and whatever I have forbidden you, refrain from it." (Using translation from Ibn Mājah 1)   

أحمد:٨٦٦٤حَدَّثَنَا أَسْوَدُ بْنُ عَامِرٍ حَدَّثَنَا شَرِيكٌ عَنِ الْأَعْمَشِ عَنْ أَبِي صَالِحٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ مَا نَهَيْتُكُمْ عَنْهُ فَانْتَهُوا وَمَا أَمَرْتُكُمْ بِهِ فَخُذُوا مِنْهُ مَا اسْتَطَعْتُمْ