Narrated Abu Huraira (may Allah be pleased with him) from the Prophet (peace and blessings of Allah be upon him) that he said: "A rebellious jinn came before me last night (or he said a similar word) to interrupt my prayer, but Allah gave me control over him. I intended to tie him to one of the pillars of the mosque so that you all could see him in the morning. Then I remembered the supplication of my brother Solomon (peace be upon him): 'My Lord, grant me a kingdom such as will not belong to anyone after me.' (Surah Sad 35) (So the Prophet, peace be upon him, humiliated him and let him go.)"