pariveksyamanam bhagavan
vilokyabhaksyam anjasa
rajanam asapat kruddho
rakso hy evam bhavisyasi
pariveksyamanam—while examining the eatables; bhagavan—the most powerful; vilokya—when he saw; abhaksyam—unfit for consumption; anjasa—very easily by his mystic power; rajanam—unto the King; asapat—cursed; kruddhah—being very angry; raksah—a man-eater; hi—indeed; evam—in this way; bhavisyasi—you shall become.
While examining the food given to him, Vasistha Muni, by his mystic power, could understand that it was unfit to eat, being the flesh of a human being. He was very angry at this and immediately cursed Saudasa to become a man-eater.

Link to this page: https://prabhupadabooks.com/sb/9/9/22

If you Love Me Distribute My Books -- Srila Prabhupada