Built by early Islamic rulers in a.d. 691 on the approximate site of the First and Second Temples , it commemorates the spot to which the Prophet Muhammad came from Mecca on a winged horse in a miraculous night journey described in the Koran .
The Koran describes the story of Muhammad .