Mishkat al-Masabih
Mishkat al-Masabih 1149
Arabic hadith text
وَعنهُ قَالَ: الَّذِي يَرْفَعُ رَأْسَهُ وَيَخْفِضُهُ قَبْلَ الْإِمَامِ فَإِنَّمَا ناصيته بيد الشَّيْطَان ". رَوَاهُ مَالك
Translation
He also said: Whoever raises and lowers his head before the imam, his forelock is in the hand of Satan. Malik transmitted it.