وَلَقَدْ اٰتَيْنَا مُوْسَى الْكِتٰبَ لَعَلَّهُمْ يَهْتَدُوْنَ ( المؤمنون: ٤٩ )
Wa laqad aatainaa Moosal Kitaaba la'allahum yahtadoon (al-Muʾminūn 23:49)
And We certainly gave Moses the Scripture that perhaps they would be guided. (Al-Mu'minun  : 49)
1 Mufti Taqi Usmani
And, of course, We gave Mūsā the Book, so that they may take the right path.