Al-Khwarizmi emphasised that he wrote his algebra book to serve the practical needs of the people concerning the matters of inheritance, legacies, partition, law suits and commerce. He considered his work as worship to God. Below is the translation of his original preface to one of his most prominent works, 'Al Kitab Al Mukhtasir Fi Hisaab Al Jabr wa Al Muqaabla'.
In The Name of God, Gracious and Merciful!
Praised be God for His bounty towards those who deserve it by their virtuous acts: in performing which, as by Him prescribed to his adoring creatures, we express our thanks, and render ourselves worthy of the continuance (of His mercy), and preserve ourselves from change: acknowledging His might, bending before His power, and revering His greatness He sent Muhammad (on whom may the blessing of God repose!) with the mission of a prophet, long after any messenger from above had appeared, when justice had fallen into neglect, and when the true way of life was sought for in vain. Through him he cured of blindness, and saved through him from perdition, and increased through him what before was small, and collected through him what before was scattered. Praised be God our Lord and may His glory increase, and may all His names be hallowed—besides whom there is no God; and may His benediction rest on Muhammad the Prophet and on his descendants!