A terror suspect allegedly encouraged extremists to attack Prince George at school, warning that “even the Royal Family will not be left alone”, a court has heard.

Husnain Rashid allegedly used an encrypted message service to share a picture of the third-in-line to the throne next to the image of an Islamic State fighter and the address of the Prince’s school.

The 31-year-old supplied practical assistance to would-be terrorists, including information on potential targets such as UK sports stadiums, Westminster Magistrates Court heard.

Rashid appeared on Wednesday pleading not guilty to one count of preparation of terrorist acts, and one count of preparation to assist others to commit terrorist acts.

Rebecca Mundy, prosecuting, said the charges related to “two sets of conduct” on or before November 22.