Charles Sweeney, 37, of Northumbria Close, Worksop was caught with 2.44 grams of Psilocin on 30th May 2014.
The court heard how at around tea time Sweeney was at a friends house when the police came in and raided the building in connection with a burglary.
Ruth Snodin, prosecuting, said: “When the police raided the house they found a holdall belonging to Mr Sweeny with items such as documents, clothes and the container inside it.”
“The container was sent off to forensics for examination and at first they was thought it was magic mushrooms but the results confirmed it was the Class A drug Psilocin.”
Sweeny said he had been living at the address for about six months and found the container in his room when he was packing to leave the house.
He didn’t know what was, so took the substance in a bag to show his friend to see if he knew what inside the container.
In mitigation, David Verity, said: “ Mr Sweeny didn’t know what was in the container so he left it and did nothing about the contents.”
“At first he thought it was fish food but he wasn’t sure and wanted to ask a friend if they knew what it might be.” “Mr Sweeny is now living back at his mothers address and trying to rebuild his life.”
Sweeny was fined £110 and ordered to pay £85 in costs and £20 victim surcharge.