- Bangladesh players and team staff had gone to city's Masjid al Noor for Friday prayers
- They were warned not to go inside after firing was heard and were taken back to the team hotel safely
- New Zealand led the three-Test series 2-0.
New Zealand Cricket (NZC) were in talks with the authorities and BCB before a decision to cancel the Test was taken.
"A joint decision between NZC and the @BCBtigers has been made to cancel the Hagley Oval Test," the New Zealand team tweeted, adding that all players and officials were safe.
Our heartfelt condolences go out to the families and friends of those affected by the shocking situation in Christc… https://t.co/PpkwZyL2AX— BLACKCAPS (@BLACKCAPS) 1552622463000
Players of the Bangladesh team were visiting city's Masjid al Noor but escaped unscathed and reached safely back to the team hotel.
"All members of the Bangladesh Cricket Team in Christchurch, New Zealand, are safely back in the hotel following the incident of shooting in the city. The Bangladesh Cricket Board (BCB) is in constant contact with the players and team management," the BCB tweeted.
Two senior members of the team, Tamim Iqbal and Mushfiqur Rahim, had also tweeted about the team's safety and narrow escape.
Entire team got saved from active shooters!!! Frightening experience and please keep us in your prayers #christchurchMosqueAttack— Tamim Iqbal Khan (@TamimOfficial28) 1552615321000
Alhamdulillah Allah save us today while shooting in Christchurch in the mosque...we r extremely lucky...never want… https://t.co/V1w9paxIwz— Mushfiqur Rahim (@mushfiqur15) 1552616730000
New Zealand led the three-Test series 2-0.
Bangladeshi players and team staff arrived at the mosque for Friday prayers as firing was heard and they were warned not to go inside.
"We are shocked and appalled, as I'm sure all New Zealanders are," NZC chief executive David White told TVNZ.
"I have spoken to my counterpart in Bangladesh and we both agree that it's inappropriate to play cricket at this time."
New Zealand's Prime Minister, Jacinda Ardern, also condemned the attack, calling it "an extraordinary act of unprecedented violence" in her tweet.
What has happened in Christchurch is an extraordinary act of unprecedented violence. It has no place in New Zealand… https://t.co/XOHF9hHe8H— Jacinda Ardern (@jacindaardern) 1552620782000
(With AFP inputs)