It is narrated from Sayyiduna Salamah bin al-Akwa' (may Allah be pleased with him): "We were present with the Messenger of Allah (peace and blessings be upon him) when one of those present said something that had a resemblance to rajaz (martial verse), whereupon the Prophet (peace and blessings be upon him) said: 'O Salamah, stand up.'" This chain is hasan (good).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الأدب وغيره / 5378