Sahih Muslim Book 4, Hadith Number 1104.

Chapter : Forbiddance of talking in prayer and abrogation of what was permissible.

Abu Huraira reported that he heard the Messenger of Allah (may peace be upon him) saying: A highly wicked one amongst the Jinn escaped yester-night to interrupt my prayer, but Allah gave me power over him, so I seized him and intended to tie him to one of the pillars of the mosque in order that you, all together or all, might look at him, but I remembered the supplication of my brother Sulaiman: “My Lord, forgive me, give me such a kingdom as will not be possible for anyone after me” (Al-Qur’an, xxxvii. 35).