Final answer:
Foreshadowing is the literary device used when George tells Lennie what to do if anything bad happens on the ranch in Of Mice and Men. This foreshadows future events.
Step-by-step explanation:
The literary device being used in the given scenario is foreshadowing. Foreshadowing is a literary technique in which the author gives hints or clues about future events in the story. In the case of George telling Lennie what to do if something bad happens, it foreshadows that something potentially dangerous or problematic will occur later in the story.
Learn more about Foreshadowing in literature