Narrated Al-Awwam
I asked Muhajid regarding the prostration in Surat Sa`d. He said, "Ibn `Abbas was asked the same question and he said, 'Those are they (the prophets) whom Allah had Guided. So follow their guidance." (6.90) Ibn `Abbas used to perform a prostration (on reading this Sura).
Narrated Al-Awwam
I asked Mujahid regarding the prostration in Surat Sa`d. He said, "I asked Ibn `Abbas, 'What evidence makes you prostrate?' He said, "Don't you recite:--'And among his progeny, David and Solomon..(6.84). Those are they whom Allah had guided. So follow their guidance.' (6.90) So David was the one of those prophets whom Prophet (Muhammad) was ordered to follow. David prostrated, so Allah's Messenger (ﷺ) (Muhammad) performed this prostration too.'
Narrated Abu Huraira
The Prophet (ﷺ) said, "Last night a demon from the Jinns came to me (or the Prophet (ﷺ) said, a similar sentence) to disturb my prayer, but Allah gave me the power to overcome him. I intended to tie him to one of the pillars of the mosque till the morning so that all of you could see him, but then I remembered the Statement of my brother Solomon:--'My Lord! Forgive me and bestow on me a kingdom such as shall not belong to any other after me.' (38.35) The narrator added: Then he (the Prophet) dismissed him, rejected. 'Nor am I one of the pretenders (a person who pretends things which do not exist).' (38.86)