Ibn Umar heard the sound of a flute. He placed his fingers in his ears and moved away from the road. Then he said to me, "Nafi, do you hear anything?"I replied, "No."So he removed his fingers from his ears and said, "I was with the Prophet ﷺ when he heard something like this, and he did the same."
حدثنا أحمد بن عبيد الله الغداني حدثنا الوليد بن مسلم حدثنا سعيد بن عبد العزيز عن سليمان بن موسى
سمع ابن عمر مزمارا قال فوضع إصبعيه على أذنيه ونأى عن الطريق وقال لي يا نافع هل تسمع شيئا قال فقلت لا قال فرفع إصبعيه من أذنيه وقال كنت مع النبي ﷺ فسمع مثل هذا فصنع مثل هذا
[Its isnad is hasan] Ahmad narrated it: 2/38, from Walid bin Muslim, with this chain, and Makhlad bin Yazid followed him in narrating it there, and Ibn Hibban graded it sahih, no. 2013. See also the following hadith.