what literary device is used in dont count your chickens

"Don't count your chickens before they hatch" is an idiom, rather than a specific literary device. It is a figurative expression that advises against making plans or assuming success before they are confirmed or realized.