(Yoosuf) 12 : 45
وَقَالَ الَّذِي نَجَا مِنْهُمَا وَادَّكَرَ بَعْدَ أُمَّةٍ أَنَا أُنَبِّئُكُمْ بِتَأْوِيلِهِ فَأَرْسِلُونِ

But the one who was freed and remembered after a time said: "I will inform you of its interpretation, so you send me".

"The one who was freed" was one of the Yoosuf's companions in prison. He remembered Yoosuf and explained Yoosuf's interpretation of the dream to the king. And he asked permission to meet Yoosuf.