Sunan an-Nasa'i, Hadith 828 ⓘ
It was narrated that Abu Hurairah said: "Muhammad said: 'Does the one who raises his head before the Imam not fear that Allah may turn his head into the head of a donkey?"'
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا حَمَّادٌ، عَنْ مُحَمَّدِ بْنِ زِيَادٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ مُحَمَّدٌ صلى الله عليه وسلم " أَلاَ يَخْشَى الَّذِي يَرْفَعُ رَأْسَهُ قَبْلَ الإِمَامِ أَنْ يُحَوِّلَ اللَّهُ رَأْسَهُ رَأْسَ حِمَارٍ " .
also referenced under: Book 10, Hadith 52 (In-Book) & Volume 1, Book 10, Hadith 829 (DarusSalam)