حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ قَالَ: حَدَّثَنَا شَرِيكٌ عَنِ الأَعْمَشِ عَنْ أَبِي صَالِحٍ عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَا أَمَرْتُكُمْ بِهِ فَخُذُوهُ وَمَا نَهَيْتُكُمْ عَنْهُ فَانْتَهُوا

Book 0: The book of the sunnah
Chapter 1: Following the sunnah of the Messenger of Allāh (peace and blessings of Allāh be upon him)

Ḥadīth [1]: It was narrated that Abī Hurayrah (may Allāh be pleased with him) said: The Messenger of Allāh (peace and blessings of Allāh be upon him) said: “Whatever I have commanded you, do it, and whatever I have forbidden you, refrain from it.”

a) Each and every command of the Prophet (peace and blessings of Allah be upon him) is binding on the community. Numerous verses of the Quran confirm the assertion.
b) Anything and everything the Prophet (saw) prohibits must be avoided. Allah the Glorified says in His book: “… And whatever the Messenger gives you, take it; and whatever he forbids you, desist from it…” (59: 7)
c) The above quoted verse proves that a command, as a rule, is binding although in certain contexts it could simply mean preferability or recommendation.

• Reference: [1 (1/73), Sunan ibn Mājah, Dārussalām (Eng)]

• Ṣaḥīḥ al-Bukhārī (7288)
• Ṣaḥīḥ Muslim (1337)
• Sunan ibn Mājah (2)
• Ṣaḥīḥ al-Jāmi’ (5552 (2/973-974))

• Irwā’ al-Ghalīl (155 (1/183) & 314 (2/19))
• Silsilah Aḥādīth aṣ-Ṣaḥīḥah (850 (2/505))

Grade:

Ṣaḥīḥ by Shaykh al-Albānī (Sunan ibn Mājah)
Ṣaḥīḥ by Ḥāfiẓ Zubayr ‘Alī Za’ī (Sunan ibn Mājah)
Ḥadīth ṣaḥīḥ by Shaykh Shu’ayb al-Arna’ūṭ (Sunan ibn Mājah)