Funny story - when our chickens were young, we usually let them free range around our large yard, and we usually get them back into their coop before dark. One night,we forgot to get them back to their coop - we do the 'pied piper thing' - they follow us as we throw them bits of bread. WELL, on this night, it got dark and they hadn't learned to get to their coop before dark. We went out to find them scattered around the yard, and had a really hard time getting them in their coop (we didn't realize their eyesight was bad in the dark!) We ended up picking up each one to return them to their coop. It was really quite a sight seeing us rounding them up!
Now that they are older and 'wiser', they always go back to the coop before dark on evenings when they are still free ranging. I guess they learned something from that one night, and so did we!