This idiom comes from a poem written by Lu You, an ancient China writer, "Stay in the green hills, you are not afraid of burning without firewood".
Lu You was a famous patriotic poet and politician in the Southern Song Dynasty. This poem comes from one of his "Two Feelings about Dawn at the Fence Gate in Autumn Night".