Sayyiduna Ibn Umar (may Allah be pleased with them both) would sometimes perform tawaf and then go inside the Ka'bah and pray the two rak'ahs there.