2 Samuel 24:17
And David spoke unto the LORD when he saw the angel that smote the people and said, I have sinned, I committed the iniquity, but these sheep, what have they done? Let thy hand, I pray thee, be against me and against my father's house.
And the ass saw the angel of the LORD standing in the way with his sword drawn in his hand; and the ass turned aside out of the way and went into the field. Then Balaam smote the ass to turn her into the way.
And when the ass saw the angel of the LORD, she thrust herself unto the wall and crushed Balaam's foot against the wall; and he smote her again.
And when the ass saw the angel of the LORD, she fell down under Balaam; and Balaam's anger was kindled, and he smote the ass with a staff.
The ass saw me and turned from me these three times; and if she had not turned from me, I also now would slay thee and leave her alive.
Then the LORD opened the eyes of Balaam, and he saw the angel of the LORD standing in the way and his sword drawn in his hand; and he bowed down his head and fell flat on his face.