External links to websites that you trust should have a dofollow, for instance reputable sites that have been in existence for over 2 years without change of ownership.
You should use nofollow for external links to new sites that are likely to be resold, shutdown or be edited to add spam content.
Affiliate or sponsored links should always be nofollow.
The rule of thumb is never link to a website that does not add value to your readers.