Abdullah b 'Umar reported that the Messenger of Allah ﷺ ordered the payment of Sadaqat-ul-Fitr before people go out for prayer. (Using translation from Muslim 986b)
عَنِ النَّبِيِّ ﷺ أَنَّهُ أَمَرَ بِإِخْرَاجِ الزَّكَاةِ زَكَاةِ الْفِطْرِ أَنْ تُؤَدَّى قَبْلَ خُرُوجِ النَّاسِ إِلَى الصَّلَاةِ