The Quraysh were the first to construct a roof on the Ka’bah, prior to this the Ka'bah was open from above. The roof construction happened during the lifetime of the Prophetbefore his Prophethood. Източник: https://wardahasan2016.blogspot.com