Foye struck for 17 points and Hayward added 15 as the Jazz got back on the winning track following four straight losses.
The 76ers got 19 points off the bench from Dorell Wright but still fell to 1-3 on a four-game western road trip.
Arnett Moultrie and Spencer Hawes each added 14 points in the loss.
Selena Gomez drops F-bomb, walks off stage during Jingle Ball performance
Wisconsin business offering 'therapeutic cuddling' forced to close