I've found "Good Morning" "Good afternoon" and "Hello" to work equally well.
Bottom line is that you need to pass only when it is safe to do so, and in a fashion that you're not depending on any particularl action from the rider(s) you're passing.
The "Good morning" bit is just a courtesy so you don't startle them, which can be upsetting to newer, or less skilled riders.
__________________
You could fall off a cliff and die.
You could get lost and die.
You could hit a tree and die.
OR YOU COULD STAY HOME AND FALL OFF THE COUCH AND DIE.