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.' " (ES)
English reference (ES): Vol. 3, Book 9, Hadith 1901 (ES)
Arabic reference (ES): Book 9, Hadith 1976 (ES)