who were Ashaab-e-Sufah?

A. Ansaar (RA) who stayed near the Masjid-e-Nabavi
B. Muhajirs (RA) who stayed near the Masjid-e-Nabavi
C. Muhajirs (RA) who stayed near the Masjid-e-Quba
D. Ansaar (RA) who stayed near the Masjid-e-Quba