The picture on the left is the building is Masjid Shajarah (Masjid of the tree) and is located opposite Masjid al-Jinn.
Masjid As-Shajarah is located towards the North of Makkah near Maulla cemetery and opposite to Masjid Jinn. This Masjid marks the historic moment when Prophet صلى الله عليه وآله وسلم showed a miracle in front of the disbelievers.
According to the history, this Masjid is built on the point where Prophetصلى الله عليه وآله وسلم was sitting once, when some disbelievers of the Quraish tribe came and rejected Prophet صلى الله عليه وآله وسلم invitation towards Islam and his prophet hood. At that occasion, the Prophet صلى الله عليه وآله وسلم prayed to Allah Almighty in these words, “O Allah! Show me such a sign after which I would have no concern for the rejection of the people.”
The Prophet صلى الله عليه وآله وسلم was then instructed by Allah Almighty to summon the nearby tree to come towards him and the tree came to him and greeted Prophet (صلى الله عليه وآله وسلم with Salaam. He then instructed it to go back to its original place, which it obeyed and stood back on it place. The disbelievers, however, still didn’t accept the Oneness of Allah. After this the Holy Prophet (peace and blessings of Allah be on him) said, “I now have no concern for the people’s rejection.”
This Masjid is normally confused with the meeqat of Madinah Dul-Hulaifah which is also at times known as Masjid As-Shajarah. The reasons of both mosques having same name is because of presence of the tree. At Dul-Hulaifah the Holy Prophet صلى الله عليه وآله وسلم put on his Ihram under the tree and offered Nawafil for niyyah when he was going for Umrah in 10th Hijri.
This masjid was built in remembrance of the great miracle of Prophethood and Oneness of Allah. Although signs of oneness of Allah Almighty were evident but the hearts of the disbelievers were dark and ignorant and they rejected and resisted the message of Islam as much as they could. But it is a matter of fact that ultimate glory was given to Islam and the Muslims.