Source identified1
“In the world ye shall have tribulation: but be of good cheer.”
The line acknowledges hardship directly before calling for courage, so cheer is not based on pretending that trouble does not exist.
Source note: John 16:33 in the King James Version; excerpt from Jesus’s closing words to the disciples.