-->
See verses {89-90} of this surah.
Allah was with Joseph in all his difficulties, sorrows, and sufferings, as He is with all His servants who put their trust in Him. The poor lad was betrayed by his brothers, and left, perhaps to die or to be sold into slavery. But his heart was undaunted. His courage never failed him. On the contrary he had an inkling, a presentiment, of things that were to be-that his own rectitude and beauty of soul would land him on his feet, and perhaps some day, his brothers would stand in need of him, and he would be in a position to fulfil that need, and would do it gladly, putting them, to shame for their present plotting and betrayal of him.
This situation actually occurred when Joseph later on became the govenor of Egypt and his brothers stood before him suing for his assistance although they did not know that he was their betrayed brother; see xii. 89 below; also xii. 58.