If you want to automatically nofollow all the links in blog comments on your WordPress site, go to Settings → Nofollow in your WordPress dashboard.
Then, check the box for Nofollow all links in comments? and click Save Changes:
Once activated, any links that appear in your blog comments will automatically have the nofollow attribute applied.