Ray couldn't get an irritating tune out of his head.
In the morning, Ray was relieved to have forgotten the annoying tune.
Ray went to bed singing the tune.
Ray went to bed hoping the tune would go away.