عَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ إِذَا غَزَا أَوْ سَافَرَ فَأَدْرَكَهُ اللَّيْلُ قَالَ: ((يَا أَرْضُ! رَبِّي وَرَبُّكِ اللَّهُ، أَعُوذُ بِاللَّهِ مِنْ شَرِّكِ وَشَرِّ مَا فِيكِ، وَشَرِّ مَا خُلِقَ فِيكِ، وَشَرِّ مَا دَبَّ عَلَيْكِ، أَعُوذُ بِاللَّهِ مِنْ شَرِّ كُلِّ أَسَدٍ وَأَسْوَدَ وَحَيَّةٍ وَعَقْرَبٍ، وَمِنْ شَرِّ سَاكِنِ الْبَلَدِ، وَمِنْ شَرِّ وَالِدٍ وَمَا وَلَدَ))
It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with him) that when the Messenger of Allah (peace and blessings be upon him) set out for a battle or any other journey and night fell during the way, he (peace and blessings be upon him) would recite this supplication: "O earth! My Lord and your Lord is Allah. I seek refuge in Allah from your evil, the evil within you, the evil of what has been created in you, and the evil of what crawls upon you. I seek refuge in Allah from the evil of every lion, every black creature, snake, and scorpion, and from the evil of the inhabitant of this land, and from the evil of every parent and what it gives birth to." (O earth! My Lord and your Lord is Allah. I seek Allah’s protection from your evil, from the evil within you, from the evil of what has been created within you, and from the evil of what crawls upon you. I seek Allah’s protection from the evil of every lion, person, snake, and scorpion, and from the evil of the inhabitant of this area, (in short) from the evil of every parent and every offspring.)