Yusuf • EN-TAFSIR-IBN-ABBAS
﴿ ثُمَّ بَدَا لَهُم مِّنۢ بَعْدِ مَا رَأَوُا۟ ٱلْءَايَٰتِ لَيَسْجُنُنَّهُۥ حَتَّىٰ حِينٍۢ ﴾
“For, presently it occurred to the nobleman and his household _ [even] after they had seen all the signs [of Joseph's innocence] - that they might as well imprison him for a time.”
(And it seemed good to them) to the Chief Official (after they had seen the signs (of his innocence)) the torn shirt and the judgement of her brother (to imprison him for a time) a few years; it is also said that (for a time) means: until people stopped talking about it.