عَن طلحةَ بنِ عبيدِ اللَّهِ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا رَأَى الْهِلَالَ قَالَ: «اللَّهُمَّ أَهِلَّهُ عَلَيْنَا بِالْأَمْنِ وَالْإِيمَانِ وَالسَّلَامَةِ وَالْإِسْلَامِ رَبِّي وَرَبُّكَ اللَّهُ» . رَوَاهُ التِّرْمِذِيُّ. وَقَالَ: هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ
Translation

Ibn ‘Umar said that when God’s messenger was travelling and night came on he said, "O earth, my Lord and your Lord is God; I seek refuge in God from your evil, the evil of what you contain, the evil of what has been created in you, and the evil of what creeps upon you; I seek refuge in God from lions, from large black snakes, from other snakes, from scorpions, from the evil of jinn [Or it may be human inhabitants.] which inhabit a settlement and from a parent and his offspring."* *This last phrase occurs in Qur’an, xc, 3 where it appears to be used in a straightforward sense; but in the tradition it is said to be a reference to lblis and his offspring of devils.Abu Dawud transmitted it.