While the people of Israel were still at Rephidim, the warriors of Amalek attacked them.