That is mythological not truly historical.
In any case, even the non-Muslim Arabs at the time also acknowledged this fact. As such, given that Prophet Muhammad, Peace be upon him, is a descendant of Abraham, Peace be upon him, and both are Muslims, it follows that they would have similar traditions, coming from the same source. Reclaiming the Ka'abah as a place of worship for Muslims is in accordance with this.
The fact that the same sources that assert the existence of figures such as Abraham and Ishmael also state that an angel talked to Ishmael's pregnant mother and that the Sakina (a spirit sent by God) or Gabriel guided father and son to the location of the Kaaba, etc. make this story mythical.
At the same time, we have events that had elements attributed to the supernatural, which did take place, and are historically documented. The two need not be mutually exclusive.
Kaaba has always been about trade/commerce/money, since well before Muhammad and Islam.
It is not a coincidence that Muhammad's tribe had the control of Kaaba where pagan pilgrims came before Islam to revere their many gods (whose representations (statues, icons, figures, etc.) were placed around Kaaba). And, very conveniently, it remained to be a holy place in Islam where each and every Muslim who can afford it must visit at least once during their lifetime.