Which internal arrangement is stated to be invalid?

Prayer in, Around, and on the Roof of the Kaaba