It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "I have been sent with the sword just before the Hour, so that Allah, the Blessed and Exalted, alone is worshipped, with no partner; my provision has been placed under the shade of my spear; humiliation and abasement have been decreed for whoever opposes my command; and whoever imitates a people is one of them."
Concerning this narration of Imam Abu Ya'la al-Mawsili, it is related that Imam Abu Dawud recorded in the Book of Clothing only its last part, "Whoever imitates a people is one of them," and remained silent about it; so according to him it is a hadith fit to be acted upon and used as evidence. Imam Ahmad bin Hanbal also recorded this entire hadith in his Musnad, except for the sentence about imitation. This narration will also come later in the Book of Jihad.
Hadith Takhrij«عبد الرحمن بن ثابت بن ثوبان: صدوق يخطئ تغير بأخرة (التقريب، من الحفظ)؛ حسان بن عطية وأبو منيب الجرشي: ثقتان» «(3981/1) أخرجه مسند أحمد برقم: 5094، وأخرجه فتح الباري برقم: 2757، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 9379، 9897، وأخرجه شرح مشكل الآثار برقم: 230» «(3981/2) أخرجه سنن أبي داود برقم: 4031، وأخرجه فتح الباري برقم: 2757، 5465، 5470، وأخرجه مسند البزار برقم: 2966، وأخرجه مسند أحمد برقم: 5093، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 9379، 9897، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 8606»