Leigh Hunt's poem Abou Ben Adhem doesn't explicitly state his activity before the angel's visit, but the opening lines strongly imply he was asleep:
"Abou Ben Adhem (may his tribe increase!)
Awoke one night from a deep dream of peace,
And saw, within the moonlight in his room,
Making it rich and like a lily in bloom,
An angel writing in a book of gold:"
He was likely resting or dreaming when the angel appeared. The poem focuses on their interaction, leaving his prior actions to the imagination.