The news reached them during the prayer
The Messenger of Allah (Muhammad), may Allah bless him and grant him peace, prayed the afternoon prayer toward the Kaaba. A man who had prayed with him went out and passed by a group of the Ansar (the supporters in Madinah) while they were praying toward Bayt al-Maqdis. He told them that he had prayed with the Messenger of Allah (Muhammad), may Allah bless him and grant him peace, toward Makkah. So they turned in their prayer toward the Kaaba; the command of Allah reached them and they followed it.
English narration has not been recorded yet
