Paṇḍarakajātaka

Suttapiṭaka · Khuddakanikāya · Jātaka (1) · Vol. 27 · Section 2391

[2391] One should not reveal a secret matter; one should guard it as one would a hidden treasure; for it is not good that a secret matter be laid open by one who understands. A wise man should not confide a secret to a woman, nor to a foe, nor to one who can be lured away by material gain (āmisa), nor to the man who is a thief of hearts. The man who makes a secret matter known to one who had not discerned it must endure it all, having become that one's slave, through fear of the betrayal of his counsel. However many they are who know a man's secret counsel, so many are his alarms; therefore one should not let a secret go. By day one should speak of a secret only having withdrawn into seclusion; by night one should not let one's voice loose beyond bounds; for eavesdroppers overhear counsel; therefore counsel quickly comes to betrayal.

English translation from the Pali (Siam Raṭṭha edition) — under review, not for citation.

This passage also appears in 1 other place