Genesis 41:27

27 The seven thin, ugly cows that came up after them are seven years, and the seven worthless, scorched heads of grain are seven years of famine.

Genesis 41:27 In-Context

25 Then Joseph said to Pharaoh, "Pharaoh's dreams mean the same thing. God has revealed to Pharaoh what He is about to do.
26 The seven good cows are seven years, and the seven good heads are seven years. The dreams mean the same thing.
27 The seven thin, ugly cows that came up after them are seven years, and the seven worthless, scorched heads of grain are seven years of famine.
28 "It is just as I told Pharaoh: God has shown Pharaoh what He is about to do.
29 Seven years of great abundance are coming throughout the land of Egypt.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.