Tafa is a past verb from t-w-f, with an implied pilgrim as subject. Bi-l-bayt is the prepositional phrase defining the object of circling.
Sabʿata is the numeral in the accusative. Ashwatin is the genitive plural counted noun after a numeral in the 3–10 range. Its singular is shawt, a circuit.