He didn't name himself after the prophet, but an Egyptian Pasha. He was a pretty modern and transformative leader for Egypt. Muhammed the boxer was a well-read guy.
https://www.youtube.com/watch?v=8bKg9tMAxt8