Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:991al-ʿAbbās b. al-Faḍl al-Asfāṭī > al-Rabīʿ b. Yaḥyá al-Ushnānī > Shuʿbah > Mukhawwal > Abū Saʿīd > Abū Rāfiʿ

[Machine] "The Messenger of Allah ﷺ passed by me while I was in prostration, and I had unkempt hair. He straightened it and advised me against doing that."  

الطبراني:٩٩١حَدَّثَنَا الْعَبَّاسُ بْنُ الْفَضْلِ الْأَسْفَاطِيُّ ثنا الرَّبِيعُ بْنُ يَحْيَى الْأُشْنَانِيُّ ثنا شُعْبَةُ عَنْ مُخَوَّلٍ عَنْ أَبِي سَعِيدٍ عَنْ أَبِي رَافِعٍ قَالَ

«مَرَّ بِي رَسُولُ اللهِ ﷺ وَأَنَا سَاجِدٌ قَدْ عَقَصْتُ شَعْرِي فَحَلَّهُ وَنَهَانِي عَنْ ذَلِكَ»  


See similar narrations below:

Collected by Suyūṭī
suyuti:625-25bAbiá Rāfiʿ
Request/Fix translation

  

السيوطي:٦٢٥-٢٥b

"عَنْ أَبِى رَافِعٍ قَالَ: مَرَّ بِىَ رسُولُ الله ﷺ وَأَنَا سَاجِدٌ قَدْ عَقصْتُ شَعْرِى فَحَلَّهُ ونَهَانِى عَنْ ذَلِكَ".  

[طب] الطبرانى في الكبير