What is the Islamic ruling regarding depiction of prophets (peace be upon them all) or companions of Prophet Muhammad (God bless them) in movies and TV shows?
This is a Sunni Salafi view/Ijtihad and not necessarily agreed to by other Islamic schools/scholars:
Majority of the scholars have prohibited depiction of the Prophet (salallahu alayhi wassalam) and his companions (may Allah be pleased with them all). This is because the harm and evil done through them is much greater than the goodness in them (even if it is there at all).
The scholars mention the following reasons for it:
Depicting them in movies makes a mockery and ridicule of their high status with Allah. The actors usually depicting the Prophets or companions need not have piety or righteousness, needless to say not even a little compared to the people they are depicting.
These movies are taken by some director and producer. No matter how hard they try to depict the actual truth, there will be some of their individual opinions creeping into the script of the movie. So, what will happen is some of the companions might be shown in bad light (mistakenly or on purpose). This is create a big dispute among people. This will be a great harm to their status. Not only that, some people will take their "Seerah classes" from these movies and it will be in their heart that this is the actual truth.
Portraying the life of Prophet and his companions will necessitate that they portray their enemies like Abu Jahl and his followers also. Now, we don't have exact conversations that took place between them. For the script of movie, they will probably fabricate something and this can be exaggerated. What will happen is the character portraying Abu Jahl may end up cursing the Prophet and his companions or talking bad about them.
Since there were also women in the life of Prophet and their companions like their wives, mothers, it is possible (very likely) that they be shown not properly covered and this is a high disrespect to them. Not to say, watching them would be haram also.
Also, remember, the non-Muslims would take the biography of the Prophet from the movie and if the movie gives them a bad opinion about the Prophet, then that is where the misconceptions about the Prophet rises. And it is a great harm done to the Dawa'h effort done by people.
So, one of the principles of Islamic jurisprudence is that if something is a pure evil (or evil is dominant in it) then it becomes forbidden. Featuring the companions may Allah be pleased with them regardless of the estimated benefit, still contains a dominant evil.
Because of this, most scholars prohibit the depiction of Prophets and his companions.