As we move forward in the next passage of Surah Yusuf, the king has a strange dream that puzzles him. Through this, Allah works in His own ways to bring the matter of the boy in the well directly into the court of the King of Egypt. When Allah is on your side, miracles occur, and protection is given, and change happens from sources no one could have predicted.