Al-Sha'bi (may Allah have mercy on him) and Ibrahim (may Allah have mercy on him) said: Testimony based on hearing is valid.