“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.' ”
Sunan Ibn Majah Book 9, Hadith 57