This is one of the oldest philosophical arguments against god. It is an inherent contradiction in the agreed upon attributes of the Judeo-Christian god. A wonderful point to bring up when debating a Christian.
This argument is typically paired with another example of the same sort, being as such: "Can god create a stone too heavy for himself to lift?"
The Abrahamic concept of god is so flawed it is nearly impossible to rectify it into something reasonable..... but when worshipping a god who needs reason anyway?