I was with Ibn Umar when he heard the sound of a drum. He put his fingers in his ears and moved away. He did this three times, then said, "This is what the Messenger of Allah ﷺ did."
حدثنا محمد بن يحيى حدثنا الفريابي عن ثعلبة بن أبي مالك التميمي عن ليث
كنت مع ابن عمر فسمع صوت طبل فأدخل إصبعيه في أذنيه ثم تنحى حتى فعل ذلك ثلاث مرات ثم قال هكذا فعل رسول الله ﷺ
No references are available.
[Its isnad is daif] see volume 208 for its defect.