When Yusuf (a.s.) wanted to keep his brother in Egypt he had a valuable measure bowl kept in the baggage of his brother. Then a person went into the caravan and shouted: O People of the caravan! You are thieves! Why did Yusuf (a.s.) act in this way that his brothers who had come in the Caravan of Palestine should be implicated for theft? While false allegation and accusation is a sin and it is Haraam?
فَلَمَّا جَهَّزَهُم بِجَهَازِهِمْ جَعَلَ السِّقَايَةَ فِي رَحْلِ أَخِيهِ ثُمَّ أَذَّنَ مُؤَذِّنٌ أَيَّتُهَا الْعِيرُ إِنَّكُمْ لَسَارِقُونَ
and when he had given them their provisions, he hid a drinkingcup in his brother's saddlebag. then a herald called out after them: 'cameleers, you are thieves!'