Shahid Shah called 999 to tell the 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.
He told a call operator he was having “violent extremist thoughts” and demanded officers were sent to his Pear Tree 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 offence happened at around 2pm, on Saturday, December 22.
He 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, of Walbrook Road, told the officers he had been visited by the police’s anti-terrorist prevent team, but he had held back from them about his true thoughts and feelings.
He said he felt “provoked by the mosque’s presence”.
Mr Bettany said: “Asked how he was going to get hold of a bomb he said he did not know, but told them he really wanted to do it.
“He demanded that officers were sent to him immediately or he was going to attack it (the mosque).”
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”.
Mr Bettany said: “He told them he had watched Osama Bin Laden videos and that he went to a Jihadi training camp.”
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.
Felicity Coates, mitigating, said: “It is quite clear that someone who calls the police and makes threats like this is not someone who is of a sound mind.”
She said he had “absolutely no idea” how he was going to carry out the threat, how to make a bomb or where to get hold of the materials.
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.”