Genesis 41:26

26 The seven good cows are seven years, and the seven good heads are seven years. The dreams mean the same thing.

Genesis 41:26 In-Context

24 The thin heads of grain swallowed the seven full ones. I told this to the magicians, but no one can tell me what it means."
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.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.