If a system is in equilibrium, any change imposed on the system tends to shift the equilibrium to nullify the effect of the applied change. The principle, which is a consequence of the law of conservation of energy, was first stated in 1888 by Henri Le Chatelier (1850–1936). It is applied to chemical equilibria. For example, in the gas reaction
An increase in pressure on the reaction mixture displaces the equilibrium to the right, since this reduces the total number of molecules present and thus decreases the pressure. The standard enthalpy change for the forward reaction is negative (i.e. the reaction is exothermic). Thus, an increase in temperature displaces the equilibrium to the left since this tends to reduce the temperature. The equilibrium constant thus falls with increasing temperature. Le Chatelier derived his principle using thermodynamics.
https://web.lemoyne.edu/~giunta/lechat.html Le Chatelier’s original paper