Sayyiduna Jundub (may Allah be pleased with him) said: We were with the Messenger of Allah (peace and blessings be upon him) on a journey, and some people came to him (peace and blessings be upon him) and said: O Messenger of Allah, we became heedless of the prayer and did not pray until the sun had risen. So the Messenger of Allah (peace and blessings be upon him) said: "Perform ablution and pray." Then he said: "This was not heedlessness; this was from Satan. When one of you lies down on his bed at night, let him say: 'Bismillah, a'udhu billahi min al-shaytan al-rajim' (In the name of Allah, I seek refuge with Allah from Satan the accursed)."
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 1709