Someone has brought up a reasonable point concerning whether the verses refer to Prophet Musa rather than Prophet Mohammad.
Is anybody who has read the Surah's opening verses and would want to comment?
Surah name: Al-Isrāʾ (Arabic: الإسراء; meaning: The Night Journey), also known as Banī Isrāʾīl (Arabic: بني إسرائيل; meaning: The Children of Israel) is the 17th chapter (sūrah) of the Quran,
17:1 Glory to Him who journeyed His servant by night, from the Sacred Mosque to the Farthest Mosque, whose precincts We have blessed, in order to show him of Our wonders. He is the Listener, the Beholder
17:2 And We gave Moses the Scripture, and made it a guide for the Children of Israel: Take none for protector other than Me
17:3 The descendants of those We carried with Noah. He was an appreciative servant
17:4 And We conveyed to the Children of Israel in the Scripture: You will commit evil on earth twice, and you will rise to a great height
17:5 When the first of the two promises came true, We sent against you servants of Ours, possessing great might, and they ransacked your homes. It was a promise fulfilled
17:6 Then We gave you back your turn against them, and supplied you with wealth and children, and made you more numerous
17:7 If you work righteousness, you work righteousness for yourselves; and if you commit evil, you do so against yourselves. Then, when the second promise comes true, they will make your faces filled with sorrow, and enter the Temple as they entered it the first time, and utterly destroy all that falls into their power
17:8 Perhaps your Lord will have mercy on you. But if you revert, We will revert. We have made Hell a prison for the disbelievers