# where he was staying

Here "he" refers to Elijah.

# on his own bed

Here "his" refers to Elijah.