Was it a mission ? I'm pretty sure an icon appears next to a system that the mission was taken from. And you'd have it listed on the comms panel too.
If its a bounty then pray someone gives you the info, it's a shame there's no way to search the GalMap for factions as well as systems/ stations.