(7) بَابُ إِذَا قَالَ أَحَدُكُمْ آمِينَ. وَالْمَلاَئِكَةُ فِي السَّمَاءِ، فَوَافَقَتْ إِحْدَاهُمَا الأُخْرَى، غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ
Narrated Abu Huraira:
The Prophet (ﷺ) said, "As long as any-one of you is waiting for the prayer, he is considered to be praying actually, and the angels say, 'O Allah! Be merciful to him and forgive him', (and go on saying so) unless he leaves his place of praying or passes wind (i.e. breaks his ablution).
Reference: Sahih al-Bukhari 3229
In-book reference: Book 59, Hadith 40
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 54, Hadith 452