Texas Lt. Gov. Dan Patrick (R) tweeted a Bible verse Sunday after a mass shooting had taken place at a gay nightclub that read man “reaps what he sows.”

The shooting left 50 people dead and dozens of others injured. The shooter, later identified as a man named Omar Mateen, was shot dead by SWAT members.

Patrick later deleted the tweet, but here’s what he said:

Patrick’s advisor, Allen Blakemore, said in a statement that the tweet was scheduled before the shooting and “was not done in response to last night’s tragedy.”

“We regret the unfortunate timing of these posts and ask everyone to join us in praying for the people of Orlando in this awful time,” Blakemore said in the statement.

Mateen’s father, Mir Seddique, told NBC News that religion had “nothing to do” with the shooting. He recounted that his son had been angered when he saw two men kissing in Miami and surmised that it might be related to the shooting.

This post has been updated.