Sayyiduna Ibn Umar (may Allah be pleased with them both) said: In whatever state you find the imam, do as he does.