I don't think it was a dream, instead, I think that Simba saw Mufasa in the sky because he believed in him, just like believing in God.
I think that this scene is based in religion, mostly because Mufasa is showing up he's like a God in the African Savannah, and he guides Simba through his life after his death, like Jesus did according the Christian Bible.