وَعَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو
قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا أحدث أدكم وَقَدْ جَلَسَ فِي آخِرِ صَلَاتِهِ قَبْلَ أَنْ يُسَلِّمَ فَقَدْ جَازَتْ صَلَاتُهُ»
Abdallah ibn Amr reported God’s Messenger as saying, “When one of you breaks wind when he has sat at the end of his prayer before giving the salutation, his prayer is valid.”