Sahih Bukhari
Interpretation of Dreams
Volume: 009 / Book Number: 087 / Hadith Number: 121
Narrated Abu Huraira:
Allah's Apostle said, "If I stayed in prison as long as Joseph stayed and then the messenger came, I would respond to his call (to go out of the prison) ."