Kharija ibn Hudhafa (Arabic: خارجة بن حذافة, romanized: Khārija ibn Ḥudhāfa; died 22 January 661) was a companion of Muhammad and a commander in the Muslim conquest of Egypt during the reign of Caliph Umar (r. 634–644). He served as the chief judge and commander of the security forces in Egypt under the governor Amr ibn al-As.