Sunan Ibn Majah, Book 36, Hadith 5 (In-Book)

It was narrated from Sumait, from ‘Imran bin Husain who said: “The Messenger of Allah sent us on a campaign, and a Muslim man attacked an idolater man.” And he mentioned the Hadith and added: “And the earth cast him out. The Prophet was told about that and he said: ‘The earth accepts those who are worse than him, but Allah wanted to show you how great is the sanctity of La ilaha illallah.’”

حَدَّثَنَا إِسْمَاعِيلُ بْنُ حَفْصٍ الأُبُلِّيُّ، حَدَّثَنَا حَفْصُ بْنُ غِيَاثٍ، عَنْ عَاصِمٍ، عَنِ السُّمَيْطِ، عَنْ عِمْرَانَ بْنِ الْحُصَيْنِ، قَالَ بَعَثَنَا رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ فِي سَرِيَّةٍ فَحَمَلَ رَجُلٌ مِنَ الْمُسْلِمِينَ عَلَى رَجُلٍ مِنَ الْمُشْرِكِينَ فَذَكَرَ الْحَدِيثَ وَزَادَ فِيهِ فَنَبَذَتْهُ الأَرْضُ فَأُخْبِرَ النَّبِيُّ ـ صلى الله عليه وسلم ـ وَقَالَ ‏ "‏ إِنَّ الأَرْضَ لَتَقْبَلُ مَنْ هُوَ أَشَرُّ مِنْهُ وَلَكِنَّ اللَّهَ أَحَبَّ أَنْ يُرِيَكُمْ تَعْظِيمَ حُرْمَةِ لاَ إِلَهَ إِلاَّ اللَّهُ ‏" ‏ ‏.‏

sunnah.com