Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) reports from the Prophet (peace and blessings be upon him): "We have been forbidden from praying at the time the sun rises and at the time it sets."
Al-Tabarani recorded it in al-Mu'jam al-Kabir; its chain contains a narrator, Dirar bin Surad Abu Nu'aym, who is extremely da'if (weak).