Sentence:  They were n't sleeping , of course , but they thought they were doing him a <WSD>favor</WSD> by pretending . 
Meaning of the word marked with <WSD> tags:  an act of gracious kindness