Surah Al-Ma'idah, ayah 43

5:43

وَكَيۡفَ يُحَكِّمُونَكَ وَعِندَهُمُ ٱلتَّوۡرَىٰةُ فِيهَا حُكۡمُ ٱللَّهِ ثُمَّ يَتَوَلَّوۡنَ مِنۢ بَعۡدِ ذَٰلِكَۚ وَمَآ أُوْلَٰٓئِكَ بِٱلۡمُؤۡمِنِينَ ٤٣

Wakayfa yuhakkimūnaka wa'indahumut-tawrātu fīhā hukmullāhi thumma yatawallawna mim ba'di dhālika wamā ulā'ika bil-mu'minīn

But how is it that they come to you for judgement while they have the Torah, in which is the judgement of Allāh? Then they turn away, [even] after that; but those are not [in fact] believers.