Amr bin Shu'aib narrates: We found this statement in the written document of Abdullah bin Amr (may Allah be pleased with them): "When a madman begins to behave indecently with his wife, then his guardian should divorce her on his behalf."