Ikrimah said: If a roof has no surrounding wall (parapet), praying on it has the same ruling as praying in the open desert.