Hazrat Ibn Umar (may Allah be pleased with them both) narrates that whatever state you find the Imam in, do as he does.