Writing a clear, detailed agreement and having it duly signed and/or witnessed can prevent two problems: forgetfulness and misunderstanding. In addition, it can reduce the chance of any involved party being tempted to take advantage of the other parties by lying, cheating, or other crooked ways resulting from bad faith. But to avoid bad faith, more than just recording the deal in writing is needed. What is needed here is piety, on which Islam lays such emphasis, defined as the respect for moral values that comes through fear and consciousness of God and belief in the Hereafter.
Senturk, Omer Faruk. “Charity in Islam” Tughra Books Press. January 2007.