The Heights - 7:188 "Say: "I can neither benefit nor harm myself except what Allah wills. Had I known the secret, I would have increased my wealth and no evil would have touched me. I am but a bearer of glad tidings and a warner to a people who believe."
Related:
The Jinn/72:21 "Say, "I am not able to do you any harm or benefit."
قُلْ اِنّ۪ي لَٓا اَمْلِكُ لَكُمْ ضَراًّ وَلَا رَشَداً

Prophet Jonah/10:49 "Say: "Except Allah wills, I have no power to harm or benefit even myself. Every community has a term. When their term is over, they will neither be delayed for an hour nor brought forward."
قُلْ لَٓا اَمْلِكُ لِنَفْس۪ي ضَراًّ وَلَا نَفْعاً اِلَّا مَا شَٓاءَ اللّٰهُۜ لِكُلِّ اُمَّةٍ اَجَلٌۜ اِذَا جَٓاءَ اَجَلُهُمْ فَلَا يَسْتَأْخِرُونَ سَاعَةً وَلَا يَسْتَقْدِمُونَ

The Heights/7:188 "Say: "I can neither benefit nor harm myself except what Allah wills. Had I known the secret, I would have increased my wealth and no evil would have touched me. I am but a bearer of glad tidings and a warner to a people who believe."
قُلْ لَٓا اَمْلِكُ لِنَفْس۪ي نَفْعاً وَلَا ضَراًّ اِلَّا مَا شَٓاءَ اللّٰهُۜ وَلَوْ كُنْتُ اَعْلَمُ الْغَيْبَ لَاسْتَكْثَرْتُ مِنَ الْخَيْرِۚ وَمَا مَسَّنِيَ السُّٓوءُ اِنْ اَنَا۬ اِلَّا نَذ۪يرٌ وَبَش۪يرٌ لِقَوْمٍ يُؤْمِنُونَ۟