Ibn 'Umar reported something similar from the Prophet, may Allahbless him and grant him peace. He stated, "We said, 'If there are four?'He said, 'Then it will not harm him.'"
English reference: Book 47, Hadith 1170
Arabic reference: Book 1, Hadith 1170