Are you quoting for academia or fiction? The rules are different.
In academic papers, the rules are more open. As long as you cite it correctly, you can site fairly large passages in academic papers without prior permission. Citing required. These do NOT create income for you but rather are used for educational purposes.
In fiction or non-fiction books intended for commercial sale, the rules are different. I don't remember that exact cut-off but if you put in more than a certain percentage of the book/page, you'll need permission even if it's cited.
There is a limit on commercial projects.
Quoting of songs in ANY commercial project is always accompanied by a fee.
I couldn't find the article I needed but here is a less helpful one.