Sulayman (as) undertook a very important task during his lifetime; he rebuilt and expanded Masjid Al Aqsa. Although the Jewish people claim that Sulayman (as) was the one to originally build the masjid, which they call ‘Solomon’s Temple’, Muslims believe he in fact rebuilt what was originally constructed before his time.
After rebuilding Masjid Al Aqsa Sulayman (as) made three special supplications to Allah. A hadith of the Prophet Muhammad (peace and blessings be upon him) reveals what these supplications were:
“When Solomon completed the building of Bait ul Maqdis [i.e. Masjid Al Aqsa], he asked Allah for three favours, of which he was given only two, and we hope that the third favour will be for us. Solomon asked for judgement that could correspond to the Judgement of Allah, and Allah accepted his prayer in this request. He also asked for a kingdom which nobody could be given after him, and this prayer was also accepted. He also asked Allah that anyone who leaves his home only for the purpose of prayer in his mosque, all his sins may be forgiven to become like the day he was born. We hope that this one Allah may grant it to us.” (Ahmad)
While Sulayman (as) was personally granted the acceptance of the first two of his supplications, the third dua was made for all believers who would come after him. This is why Prophet Muhammad (peace and blessings be upon him) said that we (Muslims) hope that this dua is fulfilled for us if we go to Masjid Al Aqsa sincerely for the purpose of praying there.