Beth-peor is where Israel took part in pagan ceremonies (see 3:29; 4:3; Numbers 25). It is also where Moses gave his farewell speech (see Deuteronomy 4:44–46).
The phrase to this day refers to the time of Deuteronomy’s final composition (see Genesis Book Introduction, “Authorship”).