Safwan bin Assal reported,

The Messenger of Allah ﷺ said, "There is a gate located before the place of sunset, an open gate whose width spans a journey of seventy years. That gate remains open for Tawba until the sun rises from its direction. When the sun rises from there, faith will no longer benefit a soul that did not believe before or earn good through its faith."

Ibn Majah 4070

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا عبيد الله بن موسى عن إسرائيل عن عاصم عن زر

عن صفوان بن عسال قال

قال رسول الله ﷺ إن من قبل مغرب الشمس بابا مفتوحا عرضه سبعون سنة فلا يزال ذلك الباب مفتوحا للتوبة حتى تطلع الشمس من نحوه فإذا طلعت من نحوه لم ينفع نفسا إيمانها لم تكن آمنت من قبل أو كسبت في إيمانها خيرا

ابن ماجه 4070صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Tribulations
Chapter
Rising of the sun from the west
Numbering
Darussalam 4070
Ibn Majah 4070