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.
bayhaqi:9589Abū Bakr Muḥammad b. Ibrāhīm al-Aṣbahānī al-Ḥāfiẓ > Abū Naṣr al-ʿIrāqī Bibukhārá > Sufyān b. Muḥammad al-Jawharī > ʿAlī b. al-Ḥasan > ʿAbdullāh b. al-Walīd > Sufyān > Ibn Jurayj > ʿAṭāʾ > Ibn ʿAbbās

[Machine] Whoever trims or braids or ties something or unties or permutes hair, then he is in accordance with his intention in doing that. He (Prophet Muhammad) said, and Ibn 'Umar said: "Shaving is obligatory."  

البيهقي:٩٥٨٩أَخْبَرَنَا أَبُو بَكْرٍ مُحَمَّدُ بْنُ إِبْرَاهِيمَ الْأَصْبَهَانِيُّ الْحَافِظُ أنبأ أَبُو نَصْرٍ الْعِرَاقِيُّ بِبُخَارَى ثنا سُفْيَانُ بْنُ مُحَمَّدٍ الْجَوْهَرِيُّ ثنا عَلِيُّ بْنُ الْحَسَنِ ثنا عَبْدُ اللهِ بْنُ الْوَلِيدِ ثنا سُفْيَانُ عَنِ ابْنِ جُرَيْجٍ عَنْ عَطَاءٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

مَنْ لَبَّدَ أَوْ ضَفَّرَ أَوْ عَقَدَ أَوْ فَتَلَ أَوْ عَقَصَ فَهُوَ عَلَى مَا نَوَى مِنْ ذَلِكَ قَالَ وَقَالَ ابْنُ عُمَرَ حَلَقَ لَا بُدَّ