Amr bin Dinar said: I saw Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) perform tawaf after the Fajr prayer and then pray two rak'ahs. Then he said: "Praying is disliked only at the time the sun rises, because the Prophet (peace and blessings be upon him) said: 'Indeed, the sun rises between the two horns of Shaytan.'"
Al-Tabarani recorded it in al-Mu'jam al-Awsat, and its chain is hasan (good).