Praise be to Allah.
Yes, it was narrated in Saheeh al-Bukhaari (581) and Saheeh Muslim (831) that it is forbidden to pray after Fajr prayer until the sun has risen above the horizon to the height of a spear, at the time of noon when the sun is at its zenith, and after the time of ‘Asr until the sun is fully set. The Prophet (peace and blessings of Allaah be upon him) told us that the sun rises and sets between the two horns of a devil, at which time the kuffaar prostrate to it.
Shaykh Sa’d al-Humayd
There is nothing in the hadeeth to say that the jinn pray to the devils at that time, rather the devils (shayaateen) are the evil ones among the jinn.