The crook (heka) and flail (nekhakha) are symbols used in Ancient Egyptian society. They were originally the attributes of the deity Osiris that became insignia of pharaonic authority. The shepherd's crook stood for kingship and the flail for the fertility of the land.
The earliest known example of a royal crook is from the Gerzeh culture (Naqada II), and comes from tomb U547 in Abydos. By late Predynastic times, the shepherd's crook was already an established symbol of rule. The flail initially remained separate, being depicted alone on some earliest representations of royal ceremonial. Approximately by the time of the Second Dynasty the crook and flail became paired.
The only extant pharaonic examples of both the crook and flail come from the tomb of Tutankhamun. Their staffs are made of heavy bronze covered with alternating stripes of blue glass, obsidian, and gold, while the flail's beads are made of gilded wood.
Traditionally crossed over the chest when held, they probably represented the ruler as a shepherd whose beneficence is formidably tempered with might.
In the interpretation of Toby Wilkinson, the flail, used to goad livestock, was a symbol of the ruler's coercive power: as shepherd of his flock, the ruler encouraged his subjects as well as restraining them.