Redirecting non-trailing slash URLs to trailing-slash

Currently, every URL of my Hugo site work with and without a trailing slash. Search engines may see this as duplicate content and treat each URL as a separate page.

I would like to redirect any hit without / at the end to the / version.

So if someone visit, they will be redirected to the version (with slash).

How can I achieve it? Is there any setting within Hugo to take care of it?

This is handled by your host/server, not by Hugo. For example, with Apache, the trailing slash is automatically added.