It is mentioned in the Hadith that when Hadhrat Adam (Peace be upon him) left Jannah, he saw that the name of the Holy Prophet (Sallallahu alaihi wa sallam) i.e. "Hadhrat Muhammad (Sallallahu alaihi wa sallam)" is written everywhere in Jannah and on the 'Arsh as well. He asked: Who is Hadhrat Muhammad (Sallallahu alaihi wa sallam). He was told: He is your son. If he were not to be there, I would not have created you. He requested: O my Lord! For the sake of the son, have mercy on his father. He was told: O Adam (Peace be upon him)! Even if you had interceded on behalf of all those who dwell in the heavens and the earth with the Wasila of Hadhrat Muhammad (Sallallahu alaihi wa sallam), we would have accepted it.
It is mentioned in another Hadith that the Holy Prophet (Sallallahu alaihi wa sallam) said: When Hadhrat Adam (Peace be upon him) ended up committing a sin, he raised his head, saw the 'Arsh and supplicated: O my Lord! For the sake of Hadhrat Muhammad (Sallallahu alaihi wa sallam), forgive me. A revelation was sent to him: Who is Hadhrat Muhammad (Sallallahu alaihi wa sallam)? He said: My Lord! When you created me, I raised my head and saw the 'Arsh and saw that on it was written: "La Ilaha Illallah Muhammadur Rasulullah." With this, I learnt that with you, no one's status is more than the One whose name is written with your name. The revelation came: Adam (Peace be upon him)! Among your children, He will be the last of the Prophets. If He were not to be there, I would not have created you.
These Hadith and many other Hadith like these are there which mention that the blessed name of the Holy Prophet (Sallallahu alaihi wa sallam) is written everywhere in Jannah, on the leaves of every tree and on the bosoms of the damsels of Jannah. We have recorded them in Anwaar-e-Ahmadi and have made the necessary discussions there.
Here, many things are to be considered. Among them is that Allah Ta'ala has written the blessed name of the Holy Prophet (Sallallahu alaihi wa sallam) on the 'Arsh and everywhere in Jannah. It seems that it has been written since the beginning itself, as immediately after being born, when Hadhrat Adam (Peace be upon him) raised his head and saw, he found the blessed name on the 'Arsh.
Here, we have to think about the reason behind writing the name on the 'Arsh and everywhere in Jannah. It cannot be, May Allah forgive us, to show to the angels some kind of partnership/association as it is written in joint factories, etc. Then this writing was when the Holy Prophet (Sallallahu alaihi wa sallam) was not yet born. If the Holy Prophet (Sallallahu alaihi wa sallam) was (physically) present when this was done, then it could have been said that something, which He (Sallallahu alaihi wa sallam) had done was liked. Thus, for this reason or to make Him happy, it was written.
Even with the briefest reflection, it will be established that Allah Ta'ala desired that in all the spiritual worlds, His grandeur should be understood and accepted. Because, when the dwellers of that world will keep seeing the blessed name, that Allah Ta'ala has written His name along with His own blessed name, then everyone will be forced to think that when the name of any distinguished angel of the spiritual worlds was not written and whose name is written is not yet (physically) present, then indeed that person will be such that He will be the most superior among all those have preceded and all those will succeed and He is the most respected and revered with Allah Ta'ala. All the spiritual worlds will be awaiting Him.
Now think that if the king of a country writes someone's name along with his name and places it at different places in the kingdom, then how distinguished will that person be considered in the whole kingdom? Then when Allah Ta'ala has written the blessed name of the Holy Prophet (Sallallahu alaihi wa sallam) along with His name in the whole spiritual worlds, then how much should His respect be in the spiritual worlds. However, the truth is that nobody can learn the conditions of the spiritual worlds other than the truly great people. If there is any person like Hadhrat Abul Bashar (Peace be upon him), he can know. Only a human being will respect the one whose name is written along with the name of the king. What do animals have to do with it? In the same way, how can the animals ignorant of the Seerah of the Holy Prophet (Sallallahu alaihi wa sallam) realize His greatness?
Thus, the reason why Allah Ta'ala wrote the blessed name of the Holy Prophet (Sallallahu alaihi wa sallam) on 'Arsh and in Jannah is to show that in the whole universe, there is neither any angel nor any genie more distinguished than the Holy Prophet (Sallallahu alaihi wa sallam).
[Maqasid Ul Islam by Shaykh Ul Islam Imam Muhammad Anwarullah Farooqui, 11th volume]