You're likely thinking of
"Of Mice and Men" by John Steinbeck. It is one of his most famous novels, telling the story of two migrant workers, George Milton and Lennie Small, who dream of owning their own farm.
Is there anything else you'd like to know about "Of Mice and Men"?