Urdu is known to have originated in the armed forces of the Mughal Empire, and was in no way tied to religion.