Sure Al-An'aam

6:154

ثُمَّ ءَاتَيْنَا مُوسَى ٱلْكِتَٰبَ تَمَامًا عَلَى ٱلَّذِىٓ أَحْسَنَ وَتَفْصِيلًۭا لِّكُلِّ شَىْءٍۢ وَهُدًۭى وَرَحْمَةًۭ لَّعَلَّهُم بِلِقَآءِ رَبِّهِمْ يُؤْمِنُونَ

Hierauf gaben Wir Musa die Schrift als Vollendung (und Belohnung) für das, was er an Gutem getan hatte', als eine ausführliche Darlegung für alles und als Rechtleitung und Barmherzigkeit, auf daß sie an die Begegnung mit ihrem Herrn glauben mögen!

Tafsir 6:154

After all this, I relate to you that I gave the Torah to Moses as a completion of My favour and a reward for his good actions, to make everything required in religion clear, and as a mercy in the hope that they would have faith in the meeting with their Lord on the Day of Judgement and prepare for it with good actions.