From Sahih Bukhari (Hadith 6515):
Narrated Ibn `Umar:Allah's Messenger (ﷺ) said, "When anyone of you dies, his destination is displayed before him in the forenoon and in the afternoon, either in the (Hell) Fire or in Paradise, and it is said to him, "That is your place till you are resurrected and sent to it
Reference: Bukhari 6515