“Whenever We abrogate a ruling or We cause it to be forgotten, We then bring forth something better than it, or [at least] something equivalent.”
This ayah is part of the Qibla-change passage of Surah al-Baqarah, revealed around the change of the direction of prayer from Jerusalem to the Ka'bah.