Ash-Shama'il Al-Muhammadiyah, Book 37, Hadith 246 (In-Book)

Anas radiyallahu anhu reports that Rasoolullah sallallahu alaihe wasallam went to Makkah for Umratul Qada. Abdullah ibne Rawahah radiyallahu anhu (throwing his sword over his shoulder and holding the reins of the camel of Sayyidina Rasoolullah sallallahu alaihe wasallam) was walking ahead of him reciting these couplets: "O non-believers clear his path (and leave today. Do not prohibit Sayyidina Rasoolullah sallallahu alaihe wasallam from entering Makkah as you had done last year) for today we shall smite you. We will take such action against you that we will separate the brain from its body. And will make a friend forget a friend."Umar radiyallahu anhu stopped him and said, O Ibne Rawahah, in the presence of Rasoolullah sallallahu alaihe wasallam and the Haram of Allah you are reciting poetry?Rasoolullah sallallahu alaihe wasallam said, Leave him O Umar, these couplets are more forceful than showering arrows onto them

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

also referenced under: Book 36, Hadith 235 (English)