It is reported concerning Sayyiduna Khalid bin al-Walid (may Allah be pleased with him) that he could not sleep, or he was afflicted with insomnia, so he complained of this to the Prophet (peace and blessings be upon him). Thereupon he (peace and blessings be upon him) ordered him to seek refuge at bedtime with these words: 'A'udhu bi-kalimati Allahi al-tammati min ghadabihi wa 'iqabihi wa sharri 'ibadihi, wa min hamazati al-shayatini wa an yahdurun' (I seek refuge in the perfect words of Allah from His anger, His punishment, the evil of His servants, and from the whisperings of the devils and from their coming to me). This narration also has a supporting narration (shahid) from the hadith of Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both), which Imam Abu Dawud, Imam al-Nasa'i and Imam al-Tirmidhi recorded; Imam al-Tirmidhi declared it hasan (good), while Imam al-Hakim declared it sahih (authentic).