when the Holy Prophet (sawa) was born Satan called his entire progeny.
They came up to him and asked: “What has made you so restless?” The devil replied: “Woe unto you. Throughout this night I was observing changes in the sky and the earth. Surely some great event is to occur because, ever since Isa (a.s.) went up to the sky such change was never observed. So all of you spread out and find out what has happened.” The satans dispersed and soon they returned and reported: “We could not find anything.” The cursed one said: “Now it is only for me to find out the great happening.”
Then he left and passing through the whole world approached the Holy Kaaba. He saw that the house was surrounded by angels all around. He tried to enter Kaaba. The angels challenged him saying: “O cursed one! Go back.” He ran away from there, became small like a sparrow and entered from the direction of Mount Hira. Angel Jibraeel scolded him saying: “Get out of here.” He said: “O Jibraeel! Please let me know just what has happened in the world last night.”
Jibraeel (a.s.) said: “Last night Muhammad, the Messenger of Allah (S) was born.” He asked: “Will I get any benefit from him?” He was informed in the negative. Then he asked: “Do I have a share in his blessings?” He was informed in the affirmative. Then he said: “I am happy.”
Reference:Hayat Al-Qulub Vol. 2