It is an experimental fact that the temperature of an object alone determines whether or not the object is in thermal equilibrium with other objects. It is only the temperature that determines whether or not there is heat flow from or to an object from its surroundings.
Objects have the same temperature.
Objects are in thermal equilibrium.
Thermal equilibrium determined only by temperature
3-2 The zeroth law of thermodynamics