For example:
* "How did you know about the surprise party?"
* "Oh, a little bird told me."
The idiom suggests that the speaker has a secret source of information, but they're not willing to disclose it. It can also be used humorously to imply that the speaker knows something that others don't, even if they're not entirely sure where they got the information.