During the time of the Prophet (PBUH), a man would talk to another about an affair while praying, until the following verse was revealed: {Maintain establishing the prayers and -especially- the middle -Al-Asr- prayer and stand before Allah devoutly} [Al-Baqarah: 238]. So we were commanded not to speak.