It is narrated from Sayyiduna Abdullah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) used to attack (the enemy) at true dawn. He (peace and blessings be upon him) would try to listen for the sound of the adhan: if he heard the adhan he would refrain (from attacking), and if he did not hear the adhan he would attack. One day he (peace and blessings be upon him) listened and heard a man saying: 'Allahu akbar, Allahu akbar' (Allah is the Greatest, Allah is the Greatest), and the Prophet (peace and blessings be upon him) said: "(He) is upon the fitrah (natural disposition)." Then the man said: 'Ashhadu an la ilaha illallah' (I bear witness that there is no god worthy of worship except Allah), and the Prophet (peace and blessings be upon him) said: "You have come out of the Fire." This narration also contains the addition that the Prophet (peace and blessings be upon him) said: "You will find him to be one who grazes goats or one who keeps hunting dogs." And (the Companions) did indeed find him to be a goatherd.
This chain is da'if (weak) because of the weakness of Hajjaj bin Artah, and Dawud is a kadhdhab (an outright liar).