Even guilty people tend to have a high esteem for those who are truly righteous.
This is of what my Lord has taught me. Verily, I have abandoned the religion of a people who do not believe in Allah and they are disbelievers in the Hereafter’.” In the first part of the verse, it is probable that the Qur’an is hinting that Yusuf said he also knew from the side of Allah what kind of food that would be served to them, and that he could also interpret their dreams just as easily.
In this case, the implication would be that in addition to interpreting dreams, Yusuf also knew about other things as well, which he used to foretell. This ability is similar to that of Hadrat Isa (as) who used to read the minds of those around him regarding what they used to eat or what they had stored in their houses. Question: Why did Hadrat Yusuf (as) not interpret their dreams then and there but postpone their interpretation for later?
Fakhr Razi provides the answer to this question as follows: He wanted to make them wait so that he could advise, admonish, and convert them, perhaps that person might believe before his execution. He wanted to build up their confidence by foretelling the kind of food before the food had been served. He wanted to tantalize them so that they would lend their ears more carefully to what he had to say.
As the interpretation of one of the dreams was that that person was going to be executed, Yusuf was postponing the issue so that that person might not lose heart too suddenly. At any rate, Yusuf, who would not miss any opportunity to provide guidance and counseling, made the most of the two prisoners’ requests for the interpretation of their dreams, and used them as a means for introducing and explaining important facts which were helpful not only for their lives, but also for all human beings.
At first, in order to build their confidence, he told them that he would tell them the meanings of their dreams before their food had arrived.