Al-Kāfi - Volume 7 > The Case of a Man who Forgets his Bearing Testimony but Recognizes his Handwriting
Hadith #4

4- عَلِيُّ بْنُ إِبْرَاهِيمَ عَنْ أَبِيهِ عَنِ النَّوْفَلِيِّ عَنِ السَّكُونِيِّ عَنْ أَبِي عَبْدِ اللهِ (عَلَيْهِ السَّلام) قَالَ قَالَ رَسُولُ اللهِ (صَلَّى اللهُ عَلَيْهِ وَآلِه) لا تَشْهَدْ بِشَهَادَةٍ لا تَذْكُرُهَا فَإِنَّهُ مَنْ شَاءَ كَتَبَ كِتَاباً وَنَقَشَ خَاتَماً.

4. Ali ibn Ibrahim has narrated from his father from al-Nawfaliy from al-Sakuniy who has narrated the following: “Abu ‘Abd Allah, ‘Alayhi al-Salam, has said that the Messenger of Allah, O Allah, grant compensation to Muhammad and his family worthy of their services to Your cause, has said, ‘Do not testify for a case which you do not remember to have witnessed, because if one likes, he can write a document or draw an insignia.’”