Speaking about the murder of Drummer Lee Rigby in Woolwich, Labour leader Ed Miliband said extremists will fail to divide Britain because "British people know this attack did not represent the true values of any community, including Muslim communities who contribute so much to our country".
Mr Miliband said he supported action to bring the perpetrators to justice and work to unite communities and learn the lessons of the attack.
But he questioned the Prime Minister on whether the events in Woolwich would mean further movement on controversial communications data proposals.
Mr Miliband said, "What is your current view on the need for legislation on communications data?"
Mr Cameron replied: "I think we need a frank debate in this House. There is a problem when, at the moment, some 95% of serious crimes involve the use of communications data.
"That is not the content of a fixed or mobile telephone call, it's about the nature of the call - when it was made, who was it that made it, when did they make it".
More top news
Two police officers face a gross misconduct hearing after stopping at McDonald's before attending an emergency call for a suicidal woman.
International Development Secretary, Priti Patel, urged the rest of the world to 'act now' to help millions of people at risk of starvation.
Nail-biting footage of two thrill seekers climbing to the top of One Canada Square in London's Canary Wharf has emerged online.