This refers to the time of the exodus from Egypt, when God considered Israel a young wife (Jer. 2:2). However, when this wife grew up, she left God for Baal and went to Baal-peor (a city named after the idol Baal of Peor — Num. 25:3; Psa. 106:28) and sanctified herself unto the shameful thing (idol) and became an abomination, like the thing (idol) that she loved.