Genesis 20:10

And Abimelech said unto Abraham, What sawest thou, that thou hast done this thing?

Cross-references

In Genesis 12:18, Pharaoh asks the same question for the same reason — Abraham repeated his 'she's my sister' lie, and another king rebuked him identically.

In Genesis 26:10, Abimelech asks Isaac the same question — Isaac repeated Abraham's exact deception, and faced the same royal reproach.