A man has been jailed after calling 999 and telling police he was going to use a bomb to blow up a city mosque.
Shahid Shah told officers he had watched Osama Bin Laden internet clips and had attended a Jihadi training camp during the call on December 22.
He told a call operator he was having violent extremist thoughts and demanded officers were sent to his address immediately before he blew up the mosque.
Shah, 35, said he would carry out his threat at the Normanton place of worship because he wanted to inflict sorrow and fear on those who went there.
Now he has been put behind bars for 16 weeks.
Peter Bettany, prosecuting at Southern Derbyshire Magistrates Court said: The defendant called 999 at 1.58pm, identified himself and told the call operator he was having violent extremist thoughts.
He said he had read a lot about extremist things and said he was going to plant a bomb outside the mosque, in Hastings Street.
He said he was going to do that because the mosque had a different ideology from him.
He said he felt radicalised by his own thought and was intent on blowing up the mosque. He said he wanted to inflict sorrow and fear on those at the mosque.
Mr Bettany said Shah told the officers he had been visited by the polices anti-terrorist prevent team, but he had held back from them about his true thoughts and feelings.
He said he felt provoked by the mosques presence.
Mr Bettany said Shah was arrested and questioned about the phone call and the threats he made during it.
He told detectives he had been watching torture and killing videos on the internet.
Shah was charged and pleaded guilty to one count of making threats to plant explosives outside a mosque.
He also admitted to it putting him in breach of a suspended prison sentence imposed in March for failing to notify the police he was travelling to Pakistan, which he was required to do as part of a previous order.
Magistrates jailed Shah for 16 weeks and ordered him to pay a £115 victim surcharge.
Ross Watson, chair of the bench, said: This was a threat to carry out serious criminal damage and we have decided it is serous enough to warrant custody.