What is the reference of hadith, whose approximate meaning is that near judgement day ,whoever will look towards a fitnah will be trapped into fitnah?
The closest I could find is the sahih hadith:
Allah's Messenger (ﷺ) said, "There will be afflictions (and at the time) the sitting person will be better than the standing one, and the standing one will be better than the walking, and the walking will be better than the running. And whoever will look towards those afflictions, they will overtake him, and whoever will find a refuge or a shelter, should take refuge in it."
The same narration is reported by Abu Bakr, with the addition, "(The Prophet (ﷺ) said), 'Among the prayers there is a prayer the missing of which will be to one like losing one's family and property."
(Sahih al-Bukhari in the Chapter Virtues and Merits of the Prophet (pbuh) and his Companions and also in Afflictions and the End of the World here and here)
Further imam at-Thirmidi can be counted among the scholars who compiled a part of this hadith as you may read here.
One could also count ibn Hebban (in his Sahih), al-Bayhaqi (in his as-Sunan al-Kubra), imam Ahmad (in his al-Musnad), At-Tabarani (in his al-Moa'jam al-Awsat on the autorithy of abu Musa), ibn Abi Shaybah (in his al-Mosannaf) and abu Dawod at-Tayalissi (in his al-Musnad) among those who quoted parts of the hadith.
I'll concentrate now on sources that quote the hadith including the meaning you requested -as far as I understood-:
- Ibn Hebban in his Sahih see here hadith #5959
- al-Aajurri in his a-Shari'a see here and here
- Abu Ya'ala al-Moosili in his Musnad see here.