England, after winning the toss, were dismissed for 182 in the fifth and final one-day international against South Africa at Trent Bridge on Wednesday.
Left-arm spinner Robin Peterson took three wickets for 37 runs in his maximum 10 overs as England were bowled out with 28 balls
of their innings left in this day/night fixture.
England captain Alastair Cook top-scored with 51 and Chris Woakes, with his highest score at this level, was 33 not out.
England lead the series 2-1.