It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Do not pray at the time the sun rises, nor at the time it sets, for the sun rises between the two horns of Satan; and between those (times) pray as much as you wish."
Imam Muslim (may Allah have mercy on him) recorded, through the route of Usamah from Hafs, one other hadith besides these two.