Sayyiduna Usamah bin Sharik al-Tha'labi (may Allah be pleased with him) said: I was with the Messenger of Allah (peace and blessings be upon him) when a funeral bier was brought before him so that he could pray over it. He (peace and blessings be upon him) turned and saw a woman approaching, and he (peace and blessings be upon him) said: "Send her back." So she was sent back repeatedly until she went out of sight. When he (peace and blessings be upon him) saw that she had gone out of sight, he said the takbir over the deceased.
Hadith Referenceالمعجم الكبير للطبراني / باب الألف / 492