One of the three men accused of breaking into a Sydney unit to whip a man for defying Islamic law texted and phoned the victim days after the attack, a court has heard.

Police say Christian Martinez, 31, was held down on his bed and lashed 40 times with an electrical cord for drinking alcohol.

Three men have been charged over the incident at Silverwater in Sydney's west.

One of the men, Zakaria Raad, was granted bail after his lawyer told Burwood Local Court he was only in the unit block to do some electrical work.

But the prosecutor said he texted and phoned the victim days after the attack.

Meanwhile, Wassim Fayad, who was granted bail earlier this week, returned to court today to provide a new residential address.