The Prophet's (s) Dua for Safety from Jinn and Men
This is the dua of the Messenger of Allah (s) which keeps one safe from jinn and men:
بِسْمِ اللہ الرَّحْمنِ الرَّحِیمِ لاَ إلهَ إلاَّ اللہ عَلَیْهِ تَوَکَّلتُ وَهُوَ رَبُّ الْعَرْشِ الْعَظِیمِ مَا شائَ اللہ کانَ وَمَا لَمْ یَشَأْ لَمْ یَکُنْ أَشْهَدُ أَنَّ اللہ عَلَی کُلِّ شَیْئٍ قَدِیرٌ وَأَنَّ اللہ قَدْ أَحاطَ بِکُلِّ شَیْئٍ عِلْماً اَللّٰهُمَّ إنِّی أَعُوذُ بِکَ مِنْ شَرِّ نَفْسِی، وَمِنْ شَرِّ کُلِّ دابَّةٍ أَنْتَ آخِذٌ بِناصِیَتِها إنَّ رَبِّی عَلَی صِراطٍ مُسْتَقِیمٍ
Translation: In the Name of God, the Most Compassionate, the Most Merciful. There is no god but Allah; in Him I put my trust, and He is the Lord of the Mighty Throne. What Allah wills comes to pass, and what He does not will does not come to pass. I bear witness that Allah has power over all things and that the knowledge of Allah encompasses everything. O God, indeed I seek refuge in You from the evil of my own self and from the evil of every moving creature; You alone hold its forelock. Indeed my Lord is on the straight path.
After that, send salawat upon Muhammad and the family of Muhammad (s), and invoke curses upon the enemies of Muhammad and the family of Muhammad (s).