Husayn b. Abd al-Wahhab in the book ’Uyun al-Mu’jizat, narrates from Abu Hashim who said: “I went to Imam Askari (a) while he was writing a letter. By the time of prayer, Imam (a) gave up writing the letter and began performing prayer.
I saw that his pen by itself moved on the paper and wrote the rest of the letter until it was finished.
Surprised by seeing this miracle, I prostrated before the One God, and when the Imam finished the prayer, he took the pen and allowed people to meet him.
Reference:
‘Uyun al-Mu’jizat, p. 134.