Sayyiduna Muhammad bin Maslamah Ansari (may Allah be pleased with him) reports that the Prophet (peace and blessings be upon him) said: "O Muhammad! When you see people fighting over the world, then take your sword and strike it on a strong stone of the Haram so that it breaks, then sit in your house until either the hand of a wrongdoer reaches you, or decisive death comes to you." So I did exactly what the Messenger of Allah (peace and blessings be upon him) had commanded me.
Hadith Referenceمعجم صغير للطبراني / كتاب الفتن / 770
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«إسناده صحيح ، وأخرجه الحاكم فى «مستدركه» برقم: 4630، وابن ماجه فى «سننه» برقم: 3962، قال الشيخ الألباني: صحيح ، والبيهقي فى«سننه الكبير» برقم: 16902، وأحمد فى «مسنده» برقم: 16275، والطبراني فى«الكبير» برقم: 513، 517، 518، والطبراني فى «الأوسط» برقم: 1289، والطبراني فى «الصغير» برقم: 404، وابن أبى شيبة فى «مصنفه» برقم: 38304، 38353، 38394 قال الهيثمي: رجاله ثقات ، مجمع الزوائد ومنبع الفوائد: (7 / 300)»
´It was narrated that Abu Burdah said:` “I entered upon Muhammad bin Maslamah and he said that the Messenger of Allah (ﷺ) said: ‘There will be tribulation, division and dissension. When that comes, take your sword to Uhud and strike it until it breaks, then sit in your house until there comes to you the hand of the evildoer (to kill you) or a predestined (natural) death.’” "And that came to pass, and I did as the Messenger of Allah (ﷺ) said."
Maulana Ataullah Sajid
Benefits and Issues: (1) The weapons of Muslims should be used against the disbelievers; when they are turned against a Muslim, it is better for them to be destroyed.
(2) The meaning of a sinful hand is that you become the target of some evildoer and attain martyrdom as an oppressed person, or due to natural death you are freed from these troubles.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 3962