The Prophet salla Allahu alaihi wa sallam wanted the Muslims to deal with other Muslims based on their deeds and not on their intention as this only Allah knows.

Besides, Huthaifa, may Allah be pleased with him was with the Prophet salla Allahu alaihi wa sallam when the hypocrites wanted to attack him and he saw them with the Prophet. from this incident, he knew them.

Rasool’Allaah(saw) gave the names of the hypocrite to one shahaba. What was the hikma and reasons for not exposing their names among the shahabi and people? what lesson we should take from this?

The Companions of the Prophet |