Genesis 40:5

5 each of the two men—the cupbearer and the baker of the king of Egypt, who were being held in prison—had a dream the same night, and each dream had a meaning of its own.

Genesis 40:5 in Other Translations

KJV
5 And they dreamed a dream both of them, each man his dream in one night, each man according to the interpretation of his dream, the butler and the baker of the king of Egypt, which were bound in the prison.
ESV
5 And one night they both dreamed--the cupbearer and the baker of the king of Egypt, who were confined in the prison--each his own dream, and each dream with its own interpretation.
NLT
5 While they were in prison, Pharaoh’s cup-bearer and baker each had a dream one night, and each dream had its own meaning.
MSG
5 the king's cupbearer and baker, while being held in the jail, both had a dream on the same night, each dream having its own meaning.
CSB
5 The cupbearer and the baker of the king of Egypt, who were confined in the prison, each had a dream. Both had a dream on the same night, and each dream had its own meaning.

Genesis 40:5 Meaning and Commentary

Genesis 40:5

And they dreamed a dream both of them
Not one and the same dream: each man his dream in one night;
which made it the more remarkable, and the more impressed their minds, concluding from hence there must be something of importance in their dreams: each man according to the interpretation of his dream;
they dreamed each what was suitable to his office and character, and which portended what should hereafter befall them, as the interpretation of them by Joseph afterwards, and the event showed; so that it was not a vain idle dream, but divine and certain: the butler and the baker of the king of Egypt, which [were] bound in
the prison;
this is added for explanation's sake, showing who were the persons spoken of that dreamed the dreams.

Genesis 40:5 In-Context

3 and put them in custody in the house of the captain of the guard, in the same prison where Joseph was confined.
4 The captain of the guard assigned them to Joseph, and he attended them. After they had been in custody for some time,
5 each of the two men—the cupbearer and the baker of the king of Egypt, who were being held in prison—had a dream the same night, and each dream had a meaning of its own.
6 When Joseph came to them the next morning, he saw that they were dejected.
7 So he asked Pharaoh’s officials who were in custody with him in his master’s house, “Why do you look so sad today?”

Cross References 2

Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.