This account refers to the interaction between Joseph and the ruler of Egypt. Unlike the references to the Pharaoh in the account of Musa, the account of Joseph refers to the Egyptian ruler as a "malik" (, 'king'), not a "fir'aun" (, 'pharaoh'). After Joseph had been imprisoned for a few years, God granted him the ability to interpret dreams, a power that made him popular amongst the prisoners. One event concerns two royal servants who, prior to Joseph's imprisonment, had been thrown into the dungeon for attempting to poison the food of the king – whose name is not given either in the Qur'an or the Bible – and his family. Joseph asked them about the dreams they had, and one of them described that he saw himself pressing grapes into wine. The other said he had seen himself holding a basket of bread on his head and birds were eating from it. Joseph reminded the prisoners that his ability to interpret dreams was a favor from God based on his adherence to monotheism. Joseph then stated that one of the men (the one who dreamt of squeezing grapes for wine) would be released from the prison and serve the king, but warned that the other would be executed, and so was done in time.