After this, the Amalekites came and attacked the Israelites at Rephidim.