Two elderly nuns have been treated for shock after they were allegedly robbed at knifepoint inside a Buddhist temple in western Sydney last night.

The women, aged 81 and 88, were in their sleeping quarters when two men armed with a knife allegedly forced entry into the Victoria Street temple about 8.40pm.

The men allegedly threatened the women, with one of them pushing the 81-year-old.

They then stole cash from a charity tin and an iPad, and fled the scene before emergency services arrived, police said.

Both women were treated for shock and the 81-year-old was also taken to Fairfield Hospital for observation.

Police have established a crime scene and the investigation is ongoing.