The ruling on writing things down during transactions
If a sale is made on credit, such that payment is owed by someone for a fixed period, Allah has commanded that it be written down and that witnesses be appointed over it, so that forgetfulness and lapses of memory may be guarded against.
At the end of Surah al-Baqarah, in the verse on debt, Allah says:
«وَلَا تَسْأَمُوا أَن تَكْتُبُوهُ صَغِيرًا أَوْ كَبِيرًا إِلَىٰ أَجَلِهِ ۚ ذَٰلِكُمْ أَقْسَطُ عِندَ اللَّهِ وَأَقْوَمُ لِلشَّهَادَةِ وَأَدْنَىٰ أَلَّا تَرْتَابُوا»
“And do not tire of writing it down, whether it is a small (matter) or a large one, until its term; this is more just in the sight of Allah and more upright for testimony, and closer to your not falling into doubt.”
That is, writing down the testimony is closer to justice, more secure and firm, more accurate, and far removed from doubt and suspicion. When the need arises, they can present the “written” paper in which everything will be found written down. Writing is therefore, in reality, the safeguarding of rights.
As for cash transactions, which people settle immediately, in which there is no debt and no fixed term, there is no harm in not writing them down. For example, someone buys a car, pays its price on the spot and goes on his way; or buys an abaya (burqa), pays for it and leaves; or buys a utensil, pays for it and goes off. In all of these cases there is no need to write anything. But a transaction in which something is owed does need to be written down so that they do not forget. That is why Allah says:
«يَا أَيُّهَا الَّذِينَ آمَنُوا إِذَا تَدَايَنتُم بِدَيْنٍ إِلَىٰ أَجَلٍ مُّسَمًّى فَاكْتُبُوهُ وَلْيَكْتُب بَّيْنَكُمْ كَاتِبٌ بِالْعَدْلِ»
“O you who believe! When you deal with one another in debt for a fixed term, write it down, and let a writer write between you with justice.”
Because writing preserves rights.