I asked our shaykh, Shaykh Muhammad ibn Saalih al-‘Uthaymeen, the following question:
She said to her husband “Divorce me”, and he said, “I agree”, or she said to her husband “I want a divorce”, and he said, “I agree”. Does divorce take place when these words are said?