You can use the wp-login.php?redirect_to option and build your URL like this:
$url = home_url();
echo "<a href=\"" . $url . "/wp-login.php?redirect_to=" . $url . "\">Click Here</a> to login";
I’m not sure where you are trying to do this so it may not suit your requirement but if you give more info I may be able to help.