Dear student,
Heat flows from a body at higher temperature to body at lower temperature, until both of the object attains thermal equilibrium. Thermal equilibrium is the state at which 2 objects are at same temperature and contains equal amount of heat energy. Hence, no flow of heat takes place between them.
Regards!!