As salaam alaikum.
I have heard a few times now that the Ka'ba was built by Adam (as) by Allah's (swt) decree and then rebuilt
by Ibrahim and Ismail (as) after the flood.
Is there any basis for this in Islam? If so, what is it so that I may look into this matter further.