Kindly refer to the following link(s):
Is it permissible to write fictional stories for children
Guidelines on writing fictional stories for children
Writing fictional stories to guide people or dawah?
Can we read novels that has fiction (bringing dead back to life, sorcery, zombies)