Indeed, the appointment of Prophet Muhammad for such tasks was an answer to the prayer of Prophets Abraham and Ishmael (peace be upon them) after they raised the foundations of the House (Ka’ba):
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.