Dalil

Quran Ya-Sin 36:45

وَإِذَا قِيلَ لَهُمُ ٱتَّقُواْ مَا بَيۡنَ أَيۡدِيكُمۡ وَمَا خَلۡفَكُمۡ لَعَلَّكُمۡ تُرۡحَمُونَ

Translation

But when it is said to them, "Beware of what is before you and what is behind you; perhaps you will receive mercy..."