In this equilibrium which is exothermic in the forward direction
N2 (g)+ 3 H2 (g) ⇌ 2 NH3 (g)
If temperature is increased the reaction will shift to oppose the change and move in the backwards endothermic direction. The position of equilibrium shifts left. The value of Kp gets smaller as there are fewer products.