First, you need to access the Yahoo Mail settings. Then, click on the "More Settings" option. To do Yahoo forward email, click the Yahoo mailbox you want under "Mailbox list." On the left side panel, click "Mailboxes." Now, enter the email address where you want your Yahoo email to be forwarded and click "Verify." Then, access the account where you intend to forward your mail. Yahoo will send you an email asking you to confirm that you wish to forward Yahoo Mail to another email. Confirm that you want the email to be forwarded. Your Yahoo Mail will now automatically forward to Gmail.
See also –
Unable to Send Emails From Yahoo Account
Know how do you Unmerge Yahoo Mail From ATT
why does yahoo mail load so slowly