tawrat is the same word as torah neither the author nor the audience knew enough to draw a distinction between this or the injil and the tanakh and new testament respectively even today a lot of christians would make this same mistake as many know the word torah but tanakh is obscure here in the seventh century hejaz there's no indication of firsthand knowledge when there is as in bukhari or in the judgment of the banu qurayza it stands out for it and is in each instance explicitly attributed to hebrew speakers who knew the scriptures no one spoke greek either i can't recall any direct quoes from either set of scriptures in the qur'an and there are several high profile errors as for whether god would speak imprecisely or in error i think that question outside the scope of an academic project