This was the first thing we were taught at dog training, Harvey was terrible. We had to have a treat in our closed hand, and let the dog sniff it, then say 'Off' and as soon as they take their nose away (which in the beginning can take a while) say 'take it' and open your palm. I was amazed how quickly they catch on.
Hope it helps.