Sayyiduna Ibn Abbas (may Allah be pleased with them both) said that the Prophet (peace and blessings be upon him) entered the Ka'bah, in which there were six pillars. He (peace and blessings be upon him) stood by each pillar and supplicated, but he did not pray.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11291