It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) was performing prayer when a goat passed in front of him. So the Prophet (peace and blessings be upon him) drove it towards the Qiblah until he pressed his stomach against the Qiblah (wall or sutrah), so that the goat could not pass.