The Nuggets built a 23-point lead heading into the fourth period and went on to their fourth straight win. The streak has come after Denver had lost eight in a row.
Oklahoma City has gone 4-4 since Russell Westbrook was lost with a knee injury. He is not expected back until after the all-star break.
Evan Fournier added five 3-pointers and Denver made 14-of-31 from beyond the arc. Foye finished with 24 points, Fournier had 19 and Ty Lawson contributed 16 to go with 14 assists.
Kevin Durant put on a one-man show for Oklahoma City, scoring 30 points while making 15-of-16 from the foul line.