Dr. Mustafa Zayd, in his book النسخ في القرآن الكريم, volume 2, pages 130-131 (items 867-868), writes that it was said that
was abrogated by
He says that the cause for abrogation is the understanding that Abraham, peace be upon him, performed the ritual jogging between As-Safa and Al-Marwa hills. Thus 2:130 mandates it, while 2:158 suggests it's not required.
Dr. Zayd refutes this claim with the following arguments,
- An authentic narration from `Aa'isha, may God have been pleased with her, reported by Al-Bukhaari, clearly states that the meaning of 2:158 is "there ought not to be any awkwardness in jogging between the two hills; it is a ritual sanctioned by God." That is because prior to Islam, the Arabs jogged between the two hills too but they had idols on each hill. Muslims felt awkward about doing something that resembles a polytheist practice. It doesn't, because now there are no idols on either hill.
- `Aa'isha and Al-Bukhaari both stated that a pilgrimage is invalid if it did not include the jog.
I'd add a simpler refutation: We do not know what the practice of Abraham (PBUH) was, except via the Quran and the authentic Sunna. The Quran doesn't say that Abraham mandated the jog, and the practice of the Prophet (PBUH) was that he always performed it.