I am trying to remember an idiom that is used when someone has a premonition about something, often coincidentally i.e. I am thinking about someone and then they call me. I know there is the expression: speak of the devil, but I think there is another less-commonly used idiom which can be more broadly applied. As I remember it is also not used directly like speak of the devil but more to say someone has summoned someone/something else.
EDIT: Apparently speak of the devil is not used in a negative sense. Thanks user240918 for the correction.