<m.Shabbath 12.6>  

If one writes two letters in two states of unawareness, one in the morning and one in the Evening, R. Gamaliel [T1, T2 or T6] holds him liable, whilst the Sages exempt him.

(Purchase a printed Mishnah)