1 verses of the World English Bible have both "pit" and "stone".
Proverbs 26:27 Whoever digs a pit shall fall into it. Whoever rolls a stone, it will come back on him.
In other translations: KJV ASV YLT Darby Webster DRC Geneva