[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."
مَنْ لَبَّدَ أَوْ ضَفَّرَ أَوْ عَقَدَ أَوْ فَتَلَ أَوْ عَقَصَ فَهُوَ عَلَى مَا نَوَى مِنْ ذَلِكَ قَالَ وَقَالَ ابْنُ عُمَرَ حَلَقَ لَا بُدَّ