It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) forbade intending to perform prayer at the time of sunset.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 4931