The best place to store marijuana is somewhere dark, cool and airtight. One way to achieve this is to wrap it in cling wrap, put it in an airtight container and into the fridge.
The cling wrap helps to maintain the smell (which you may want). If you just put it into an airtight container, it will loose its smell. Make sure there is no moisture before you wrap it, or it may develop mold.
Definitely keep it away from sunlight as that dries it immediately.
Don’t put it in the freezer as that will ruin it for sure.