Funerary Prayer in Absentia

Question Following the death of the former deposed Egyptian President, many Muslims around the world performed Ṣalāt-ul-Janazah (funerary prayer) for him.  Is this something that has precedent in Islam?  Why are others seemingly opposed to it? Answer Undertaking Ṣalāt-ul-Janazah (funerary prayer) in absentia does have precedent in Islam, as the Messenger of Allah (peace be upon him) did this for the Najāshi in It is acknowledged that some have argued