Is the hadith that says the Prophet turned the sun back so Imam Ali (AS) could perform his prayer at the earliest time authentic? Where can I find it?
Is the Hadith About the Sun Being Turned Back for Imam Ali’s (AS) Prayer Authentic?
The essence and first answer at a glance (60-word summary)
Miracles such as turning the sun back so that Imam Ali (AS) could pray at the earliest time are possible, although the details of this event are disputed. One must answer the Prophet’s (PBUH) call even while performing an obligatory prayer, because they are the reality and spirit of the remembrance of God.
Answer by Master Ali Saei (Abdullah Meshkat)
Teacher and researcher in the intellectual tradition of wisdom and the Ahl al-Bayt | Soroush Bamdadān Cultural CenterThere is no doubt that such miracles—and even greater ones—are possible. Some details of this account, however, are open to discussion.
Responding to the Messenger of God (peace be upon him) is obligatory, even if one is performing an obligatory prayer. In the account in question, supposing that the Messenger of God was held in the warm embrace of the Friend of God, the very spirit of prayer was, in reality, held in the embrace of prayer’s supreme manifestation. For they are the reality and essence of remembrance of God, and the meaning, interpretation, exposition, and inner exegesis of prayer.
الأنفال : 24 یا أیها الذین آمنوا استجیبوا لله و للرسول إذا دعاکم لما یحییکم و اعلموا أن الله یحول بین المرء و قلبه و أنه إلیه تحشرون
O you who believe, respond to God and the Messenger when he calls you to that which gives you life. And know that God comes between a person and his heart, and that to Him you will be gathered.
For further reading, I refer you to the attached file, researched by Shia scholars.