My chickens are very good about putting themselves to bed, but sometimes, especially if we are going out I want them in earlier. I have them trained (Very easy, just use repetition.) that when I whistle and shake a can filled with cracked corn, mealworms and other chicken goodies they come running because they are going to get a treat. I throw handfuls in their coop and they race in, no matter the time.
You can start by when they are already in the coop, call to them, shake your can or whatever you have and toss treats in. Soon they will be running to greet you.