He passed by Al-Hasan bin Ali while he was performing Salat and he had gathered his locks…

Jami` at-Tirmidhi Book 2 Hadith 236

Jami` at-Tirmidhi #384

The Book on Salat (Prayer) 2:236

Abu Rafi narrated that :

He passed by Al-Hasan bin Ali while he was performing Salat and he had gathered his locks at the back of his head, so he (Abu Rafi) undid them, and Al-Hasan turned to him angrily. He said: "Resume your Salat and do not be angry, for indeed I heard Allah's Messenger (S) saying: 'That is the seat of Ash-Shaitan.'"

Chapter: What Has Been Related About It Being Disliked To Gather The Hair During Salat

Grade: Hasan (Darussalam)