The prophet (s.a.w) was reported to have said : ” “Do not let the women come down the room and do not teach them to write, while teach them the spindle/spinning wheel and surah al Noor
A question about it’s authenticity was asked to the scholars (may allah preserve them all) of Islamweb. their response was
And in Mustadrak Hakim with the same chain and is weak
أبو أحمد الحاكم
– ليس بالمتين عندهم
92- Section on dislike of women coming down the room and teaching them writing and surah al Yusuf, and desirability of teaching them the spindle/spinning wheel and surah al Nur, and the obligation of enjoining good and forbidding from evil to the household/family.
[ 25355 ] 1 ـ محمد بن يعقوب ، عن علي بن إبراهيم ، عن أبيه ، عن النوفلي ، عن السكوني ، عن أبي عبدالله ( عليه السلام ) قال : قال رسول الله ( صلى الله عليه وآله ) : لا تنزلوا النساء الغرف ولا تعلموهن الكتابة وعلموهن المغزل وسورة النور .
ورواه الصدوق بإسناده عن إسماعيل بن أبي زياد ، يعني السكوني ، مثله
 1: Muhammad b. Ya’qoob, from Ali b. Ibrahim, from his father, from al Nofali, from al Sakuni , from abi Abdullah who said: “Do not let the women come down the room and do not teach them to write, while teach them the spindle/spinning wheel and surah al Noor.” And Shaikh Sadooq narrated it by his isnaad from Ismail b. abi Ziyad, i.e. al Sakuni, (and) similar to it.
This is reported by one of their greatest Imaams – Al-Kulyani as well.
[Ref: الكافي ج5 ص516 ح1، ورواه الصدوق في من لا يحضره الفقيه ج1 ص245 ح1089/9، وج3 ص280 ح1336/11]
The Messenger of Allah (s.a.w) entered when I was with Hafsah, and he said to me: Why do you not teach this one the spell for skin eruptions as you taught her writing
[Sunan Abi Dawud, Book of Medicine, 3887, Saheeh al Albaanee]
(iii) Clearing the Misconceptions about Women in Islam