There are similar thoughts in many spiritual traditions...find your mystic or gnostic vein in any religion and you're not far away from this concept.
"God likes to play hide-n-seek, but because there is nothing outside of God, he has no one but himself to play with!" http://educateinspirechange.org/spirituality/concept-great-p...