Hasan al-Basri (may Allah have mercy on him) said: If someone writes a divorce and then erases it before uttering it, nothing will happen, unless he acts upon it or says it with his tongue.
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 2360
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 1183، 1184»