It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that we stopped and camped at a place at night with the Messenger of Allah (peace and blessings be upon him). We did not wake up until the sun had risen. The Messenger of Allah (peace and blessings be upon him) said: "Let every man take hold of the rein of his riding animal, that is, let us move on from here, for at this place Satan came to us." So we did so. Then he called for water, performed ablution, and offered the two sunnah rak'ahs of Fajr. Then the iqamah was called, and he (peace and blessings be upon him) led the Fajr prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3178