You're possibly thinking of Article 77 of the ANO 2005:
Every person in an aircraft shall obey all lawful commands which the commander of that aircraft may give for the purpose of securing the safety of the aircraft and of persons or property carried therein, or the safety, efficiency or regularity of air navigation.