Indeed, the appointment of Prophet Muhammad (s.a.w.) for such tasks was an answer to the prayer of Abraham (a.s.) and Ishmael (a.s.) after they raised the foundations of the House (kdbah):
Magacyada Muhammad iyo khadijah wiilashiisuna waxay ahaayeen Khaasim oo Abdullah - ahaa oo sidoo kale loo yaqaan AlTahir ama Al Tayyib - iyo gabdhahoodiiba oo la magacaabay maleshiyada, Rukiyah, Umm Kulthum iyo Fatima oo ku dhashay hal sano ka hor bay ka dhigaysaa aabbaheed u noqday Nabiga Eebe.