Sampling music is legally pretty grey - that means it can be all over the place - so don't take this as legal advice. Technically speaking, if you sample someone else's recording you MUST HAVE their permission to do so. If you do not seek permission and use a sample in a commercial release, it would probably be considered stealing or copyright infringement.