PRAGUE (Reuters) - Czech police will stop detaining Syrian migrants who have claimed asylum in Hungary but are attempting to travel to Germany, news agency CTK said on Wednesday, quoting the foreigners' police department.

Under EU rules, migrants should stay in the first EU country they reach but thousands have pressed on to reach the richer western countries, mainly Germany.

The foreigners' police were not immediately available for comment.

(Reporting by Jan Lopatka and Robert Muller Editing by Jeremy Gaunt)