Hadith of Law laak ma khalaqta al-aflaak

Question: What do the respected Ulama of the religion and Shariah say about the hadith:

لولاك لولاك ما خلقت الأفلاك – Law laaka law laaka maa khalaqtal aflaak. Which book is this hadith in? Is the Prophet of Allah (sallallahu ‘alaihi wasallam) the reason for creation or not? Are there other ahadith that support this narration? Answer: Indeed the Prophet of Allah (sallallahu ‘alaihi wasallam) is the reason for the creation of Adam alaihis salam and the universe. If the Prophet of Allah (sallallahu ‘alaihi wasallam) was not in existence, then the Arsh and Kursi, Lawh and Qalam, the Skies and the Earth, Heaven and Hell, the trees and stones and all other creatures would not exist.

And while the lafdh in question is not considered an authentic wording from the Prophet (sallallahu ‘alaihi wasallam), it is, as Mullah al-Qaari said, “Though al-Saghanee says this is mawdu even so I say its meaning is saheeh (authentic) even if it is not a hadith. Please read about Ibn Taymiyyah and his discussion of the hadith law laaka in Majma` Fataawa Ibn Taymiyyah.

There are many ahadith to this effect. Hadith 1: al-Hakim in his Mustadrak, Baihaqi in Dalail an-Nubuwah, Tabarani in his Kabeer, Abu Naeem in his Hilya and ibn Asakir in Tarikh Damishq report from Sayyiduna Ameer al-Mumineen ‘Umar ibn al-Khattab Farooq al-Adham (radiyallahu ta’ala anhu) that:

The Prophet of Allah (sallallahu ‘alaihi wasallam) said: Allah said: When Adam made the mistake, he asked: O Allah! I ask you for the sake of Muhammad to forgive me. Allah said: O Adam! How do you recognise Muhammad when I have not yet created him? Adam said: O Allah! When you created me and blew into me the spirit, I lifted my head and saw written on the Arsh La ilaaha illallah Muhammadur rasoolullah. So, I got to know that you would only join your name with him who is most beloved to you. Allah said: O Adam! You have spoken the truth. Indeed Muhammad is more beloved to me than anything and when you asked me for his sake, I pardoned you. If Muhammad was not in existence, I would not have created you (Also from Imam Subki in Shifa as-Siqam and Shihab in Naseem)