Surah Al-Anbiya, ayah 7

21:7

وَمَآ أَرۡسَلۡنَا قَبۡلَكَ إِلَّا رِجَالٗا نُّوحِيٓ إِلَيۡهِمۡۖ فَسۡـَٔلُوٓاْ أَهۡلَ ٱلذِّكۡرِ إِن كُنتُمۡ لَا تَعۡلَمُونَ ٧

Wamā arsalnā qablaka illā rijālan nūhī ilayhim fas'alū ahladh-dhikri in kuntum lā ta'lamūn

And We sent not before you, [O Muḥammad], except men to whom We revealed [the message], so ask the people of the message [i.e., former scriptures] if you do not know.