[Machine] Divorce and wills are not permissible except in a state of sound mind, meaning not intoxicated. If someone is intoxicated, their divorce is permissible and they are to be struck on the back.
لَا يَجُوزُ طَلَاقٌ وَلَا وَصِيَّةٌ إِلَّا فِي عَقْلٍ إِلَّا النَّشْوَانَ يَعْنِي السَّكْرَانَ فَإِنَّهُ يَجُوزُ طَلَاقُهُ وَيُضْرَبُ ظَهْرُهُ