when you use Google as your search engine.
Safari is not a search engine, it's a web browser.
Yahoo is notorious for being hacked or messed with.
Download and install the Mac version of Malwarebytes and run it.
It states you’ve been selected for a chance to get $1000 Amazon gift card, Apple iPhone...
It appears when I use my search engines safari and yahoo.