Joseph told his brothers to be sure that Pharaoh knew they are shepherds. (Genesis 46:31-34) This was so Pharaoh would not want them to assimilate into Egyptian society. Egyptians didn't like shepherds. They didn't lie to Pharaoh, but the truth they told was strategically selective.