Hadith 10:193
Abu Bakr narrated to us, he said: Abd al-Salam ibn Harb narrated to us, from Mughira, from Ibrahim, who said: If a mentally deficient person divorces his wife while he is in a state of lucidity, he said: It is valid.
حدثنا أبو بكر قال نا عبد السلام بن حرب عن مغيرة عن إبراهيم قال إذا طلق المعتوه امراته في حال إفاقته قال جاز