Surah Sad, Ayah 34 (38:34)
وَلَقَدۡ فَتَنَّا سُلَيۡمَٰنَ وَأَلۡقَيۡنَا عَلَىٰ كُرۡسِيِّهِۦ جَسَدٗا ثُمَّ أَنَابَ ٣٤
Arabic: King Fahd Complex Hafs text.
English translation
34. And indeed, We did try Sulaimân (Solomon) and We placed on his throne Jasad (a devil, so he lost his kingdom for a while) and he did return (to Allâh with obedience and in repentance, and to his throne and kingdom by the Grace of Allâh).
Hilali and Khan (QuranEnc.com)