It was narrated that Mujahid said:
"I was with Ibn Umar, and he heard the sound of a drum, so he put his fingers in his ears and turned away. He did that three times, then he said: "This is what I saw the Messenger of Allah do.' " (RU)
English reference (RU): Vol. 3, Book 9, Hadith 1901 (RU)
Arabic reference (RU): Book 9, Hadith 1976 (RU)