To which place does the pronoun in “ʿalayhi” refer?

Book of Hajj: Sa’y between Safa and Marwa and the Day of Tarwiyah