When you are using others' works, there is a series of questions you will need to ask:
If the work is in the public domain, you're free to use it without permission or payment.
Works you find online or works in library databases may be subject to terms and conditions that can restrict how you use the work. Be sure to read any terms and conditions before using the work.
If so, see if your use falls under the license terms.
If the work is not in the public domain or available under an open license, consider if your use falls under fair use.
If your use is not fair, you will need to get permission from the copyright holder. If you can't get permission or the permission comes at too high a cost, you may need to consider using a different work. To better understand the permissions process, see the following resources: