certainly in the stories of the bygone people there is a lesson for people of understanding. what is being narrated in the quran is no fabrication it is rather confirmation of the books that preceded it and a detailed exposition of everything and a guidance and mercy for people of faith.
لقد كان في قصصهم عبرة لأولي الألباب ما كان حديثا يفترى ولكن تصديق الذي بين يديه وتفصيل كل شيء وهدى ورحمة لقوم يؤمنون