I use a really small ratio of around 1.5 to 1. This means that once my audio passes the threshold I’ve set, there is very little compression happening to that audio. It’s just a little bit. I’m not trying to squash the life out of it. You can experiment with a little bit higher of a ratio, but know that the lower the ratio the less compression (more dynamics), and the higher the ratio the more compression (less dynamics).
If you sample someone else’s music, make sure you’ve covered all your bases too. Reach out to the original songwriter to discuss splits and obtain a mechanical license to use their sample in your music, and then register and administer the percentage that you both agree upon. Don’t find yourself in a sticky situation — do your homework and know how to properly go about using samples.