Writing fiction

Assalamualaykum, I hope you are well. I would like to ask the following question: is it allowed to write an imaginary story for children, in which there are fictional characters who teach the reader an Islamic lesson? I would put a disclaimer at the beginning of the book that the story is fictional. Also, would income derived from selling such a book be halal?

جزاك الله خيرًا

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
الجواب وباللہ التوفیق

In the present case, writing moral, reformative, and educational stories for children—for the purpose of improving their upbringing, sharpening their minds, and increasing their interest in studies—is permissible, even if such stories are fictional. Earning money from them is also permissible.

However, if real inspiring incidents from authentic Islamic personalities are narrated to children in an engaging and interesting style, then that is more effective and better for their moral and character development.

صورتِ مسئولہ میں بچوں کی تربیت، ذہن تیز کرنے،  اور ان کی تعلیمی دل چسپی  بڑھانے وغیرہ  کے لیے  اخلاقی، اصلاحی اور سبق آموز کہانیاں لکھنا جائز ہے، اگرچہ وہ فرضی بنائی ہوئی ہوں، اور ان سے پیسے کمانا بھی جائز ہے،تاہم اگر اسلام کے قابلِ رشک حقیقی کرداروں کے حقیقی واقعات  دل چسپ پیرائے میں بچوں کو سنائے جائیں تو یہ ان کی تربیت کے لیے زیادہ مؤثر اور بہتر ہے۔

فقط واللہ اعلم بالصواب