It is acceptable to perform Umrah on behalf of deceased Muslims but this does not apply to non-Muslims like the queen.
Saudi authorities have arrested a man who claimed to have travelled to the Muslim holy city of Mecca to perform an Umrah pilgrimage on behalf of the late Queen Elizabeth II.
The man, a Yemeni national, on Monday published a video clip of himself on social media at the Grand Mosque in Mecca, Islam's holiest site, where non-Muslims are forbidden.
In the clip, he held up a banner saying: "Umrah for the soul of Queen Elizabeth II, we ask God to accept her in heaven and among the righteous."
The footage was widely circulated on Saudi social media, with Twitter users calling for the man's arrest.
Saudi Arabia forbids pilgrims to Mecca from carrying banners or chanting slogans.
And while it is acceptable to perform Umrah on behalf of deceased Muslims, this does not apply to non-Muslims like the queen, who was supreme governor of the Church of England, the mother church of the worldwide Anglican communion.
Security forces at the Grand Mosque "arrested a resident of Yemeni nationality who appeared in a video clip carrying a banner inside the Grand Mosque, violating the regulations and instructions for Umrah," said a statement carried by state media late on Monday.
"He was arrested, legal measures were taken against him and he was referred to the public prosecution."
The Umrah is a pilgrimage that can be undertaken at any time - distinct from the Hajj, which takes place once annually and usually draws millions from around the globe.
The queen died on Thursday and her funeral is planned for September 19.