Rogue in Space is a science fiction novel by American writer Fredric Brown, first published in 1957.
Whilst the god-like living asteroid builds a new world around itself, and blocks all mankind's efforts to investigate it, eventually the criminal returns to the planet with a small group.
The sentient asteroid allows them to make planetfall, but only the criminal can accept living in the new Eden created for him, and they eventually depart.
"[1] Anthony Boucher defined Rogue in Space "a thumping error in judgment," saying the decision to expand "one of [Brown's] least interesting stories to novel length" produced a work that had "lost what small virtues it once possessed, and become slow, ponderous, humorless [and] pretentious.
"[2] John Varley's story "Lollipop and the Tar Baby", set in his Eight Worlds future, uses a similar premise - featuring a sentient Black Hole and its interactions with humans.