Surah Yusuf 12:35
ثُمَّ بَدَا لَهُم مِّنۢ بَعْدِ مَا رَأَوُا۟ ٱلْـَٔايَـٰتِ لَيَسْجُنُنَّهُۥ حَتَّىٰ حِينٍ
Then it appeared to them after they had seen the signs that he [i.e., al-ʿAzeez] should surely imprison him for a time.
Translation: Saheeh International
Tafsir
Then it seemed it appeared good to them after they had seen the signs indicating Joseph’s innocence that they should imprison him for a while until such time as people ceased to talk of him. He was thus imprisoned.
Excerpt from Tafsir al-Jalalayn, commentary on 12:35, via Quran.com. The reader has the full commentary and 9 more tafsirs.