Yusuf - 12:35

ثُمَّ بَدَا لَهُم مِّن بَعْدِ مَا رَأَوُاْ الآيَاتِ لَيَسْجُنُنَّهُ حَتَّى حِينٍ
[12:35]
Then it occurred to them after they had seen the signs that they should imprison him till a time.
Then it occurred to the men, after they had seen the signs, (that it was best) to imprison him for a time.
And it seemed good to them (the men-folk) after they had seen the signs (of his innocence) to imprison him for a time.